Skip to content

Commit 94192b6

Browse files
committed
wip
1 parent ece6670 commit 94192b6

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

crates/node/src/full/mod.rs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use katana_gateway_client::Client as SequencerGateway;
1515
use katana_metrics::exporters::prometheus::PrometheusRecorder;
1616
use katana_metrics::{Report, Server as MetricsServer};
1717
use katana_pipeline::{Pipeline, PipelineHandle};
18-
use katana_pool::ordering::{FiFo, TipOrdering};
18+
use katana_pool::ordering::TipOrdering;
1919
use katana_provider::providers::db::DbProvider;
2020
use katana_provider::BlockchainProvider;
2121
use 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

crates/rpc/rpc/src/starknet/list.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use crate::starknet::pending::PendingBlockProvider;
1515
impl<Pool, Pending> StarknetApiExtServer for StarknetApi<Pool, Pending>
1616
where
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?)

crates/rpc/rpc/src/starknet/write.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ use katana_rpc_types::broadcasted::{
99
BroadcastedInvokeTx,
1010
};
1111

12-
use crate::starknet::pending::PendingBlockProvider;
13-
1412
use super::StarknetApi;
13+
use crate::starknet::pending::PendingBlockProvider;
1514

1615
impl<Pool, Pending> StarknetApi<Pool, Pending>
1716
where

0 commit comments

Comments
 (0)