v0.3.15-pre.009
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// file: crates/ksp-app-raw-transaction-ingest-desk/src/route_inventory.rs
|
||||
// version: 5
|
||||
// version: 6
|
||||
|
||||
//! Config-only logical route inventory for Raw Transaction Ingest Desk.
|
||||
|
||||
@@ -18,6 +18,7 @@ struct RouteCapabilities {
|
||||
has_helius_transaction: bool,
|
||||
helius_source_declared: bool,
|
||||
helius_source_missing_secret: bool,
|
||||
yellowstone_has_get_block: bool,
|
||||
yellowstone_source_missing_secret: bool,
|
||||
}
|
||||
|
||||
@@ -236,6 +237,9 @@ fn build_profile_inventory(
|
||||
crate::RawIngestRouteUnavailableReason::NetworkMismatch,
|
||||
);
|
||||
}
|
||||
if component_id == crate::COMPOSITE_COMPONENT_ID_TRANSPORT_YELLOWSTONE {
|
||||
capabilities.yellowstone_has_get_block = http_role_supports_methods(resolved.http_settings(), &["getBlock"]);
|
||||
}
|
||||
capabilities.absorb_transport(&resolved, network.as_str());
|
||||
}
|
||||
let routes = build_configured_profile_routes(&capabilities, network.as_str());
|
||||
@@ -268,7 +272,7 @@ fn build_configured_profile_routes(capabilities: &RouteCapabilities, network: &s
|
||||
network,
|
||||
&[
|
||||
(capabilities.has_yellowstone, yellowstone_reason),
|
||||
(capabilities.has_get_transaction, crate::RawIngestRouteUnavailableReason::MissingHttpGetTransaction),
|
||||
(capabilities.yellowstone_has_get_block, crate::RawIngestRouteUnavailableReason::MissingHttpGetBlock),
|
||||
],
|
||||
),
|
||||
route_with_requirements(
|
||||
|
||||
Reference in New Issue
Block a user