File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ use katana_gateway_client::Client as SequencerGateway;
1515use katana_metrics:: exporters:: prometheus:: PrometheusRecorder ;
1616use katana_metrics:: { Report , Server as MetricsServer } ;
1717use katana_pipeline:: { Pipeline , PipelineHandle } ;
18- use katana_pool:: ordering:: { FiFo , TipOrdering } ;
18+ use katana_pool:: ordering:: TipOrdering ;
1919use katana_provider:: providers:: db:: DbProvider ;
2020use katana_provider:: BlockchainProvider ;
2121use katana_rpc:: cors:: Cors ;
@@ -105,10 +105,15 @@ impl Node {
105105
106106 // --- build gateway client
107107
108+ let gateway_client = match config. network {
109+ Network :: Mainnet => SequencerGateway :: mainnet ( ) ,
110+ Network :: Sepolia => SequencerGateway :: sepolia ( ) ,
111+ } ;
112+
108113 let gateway_client = if let Some ( ref key) = config. gateway_api_key {
109- SequencerGateway :: sepolia ( ) . with_api_key ( key. clone ( ) )
114+ gateway_client . with_api_key ( key. clone ( ) )
110115 } else {
111- SequencerGateway :: sepolia ( )
116+ gateway_client
112117 } ;
113118
114119 // --- build transaction pool
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ use katana_rpc_types::broadcasted::{
99} ;
1010use katana_rpc_types:: { BroadcastedTx , BroadcastedTxWithChainId } ;
1111
12+ use super :: StarknetApi ;
1213use crate :: starknet:: pending:: PendingBlockProvider ;
1314
1415impl < Pool , PoolTx , Pending > StarknetApi < Pool , Pending >
You can’t perform that action at this time.
0 commit comments