File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed
Expand file tree Collapse file tree 3 files changed +10
-6
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 @@ -15,7 +15,7 @@ use crate::starknet::pending::PendingBlockProvider;
1515impl < Pool , Pending > StarknetApiExtServer for StarknetApi < Pool , Pending >
1616where
1717 Pool : TransactionPool + Send + Sync + ' static ,
18- Pending : PendingBlockProvider
18+ Pending : PendingBlockProvider ,
1919{
2020 async fn get_blocks ( & self , request : GetBlocksRequest ) -> RpcResult < GetBlocksResponse > {
2121 Ok ( self . blocks ( request) . await ?)
Original file line number Diff line number Diff line change @@ -9,9 +9,8 @@ use katana_rpc_types::broadcasted::{
99 BroadcastedInvokeTx ,
1010} ;
1111
12- use crate :: starknet:: pending:: PendingBlockProvider ;
13-
1412use super :: StarknetApi ;
13+ use crate :: starknet:: pending:: PendingBlockProvider ;
1514
1615impl < Pool , Pending > StarknetApi < Pool , Pending >
1716where
You can’t perform that action at this time.
0 commit comments