Skip to content

Commit 8ab8c00

Browse files
committed
Use dev-context-only-utils in AccountFetcher
1 parent a4eac1f commit 8ab8c00

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

magicblock-committor-service/src/tasks/account_fetcher.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
use magicblock_config::MagicBlockConfig;
2-
31
use solana_account::Account;
42
use solana_pubkey::Pubkey;
53
use solana_rpc_client::nonblocking::rpc_client::RpcClient;
@@ -15,10 +13,14 @@ pub struct AccountFetcher {
1513
impl AccountFetcher {
1614
pub fn new() -> Self {
1715
use crate::{config::ChainConfig, ComputeBudgetConfig};
18-
let mb_config = MagicBlockConfig::parse_config();
1916

17+
#[cfg(feature = "dev-context-only-utils")]
18+
let chain_config =
19+
ChainConfig::local(ComputeBudgetConfig::new(1_000_000));
20+
21+
#[cfg(not(feature = "dev-context-only-utils"))]
2022
let chain_config = ChainConfig {
21-
rpc_uri: mb_config
23+
rpc_uri: magicblock_config::MagicBlockConfig::parse_config()
2224
.config
2325
.accounts
2426
.remote

0 commit comments

Comments
 (0)