File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
magicblock-committor-service/src/tasks Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1- use magicblock_config:: MagicBlockConfig ;
2-
31use solana_account:: Account ;
42use solana_pubkey:: Pubkey ;
53use solana_rpc_client:: nonblocking:: rpc_client:: RpcClient ;
@@ -15,10 +13,14 @@ pub struct AccountFetcher {
1513impl 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
You can’t perform that action at this time.
0 commit comments