From 77e9de85300ffe5fa9ef2e77434b13845ced5566 Mon Sep 17 00:00:00 2001 From: Heorhii Azarov Date: Fri, 20 Dec 2024 13:22:31 +0200 Subject: [PATCH] Minor --- node-lib/src/runner.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node-lib/src/runner.rs b/node-lib/src/runner.rs index 5e4e9578a..cbc4c0880 100644 --- a/node-lib/src/runner.rs +++ b/node-lib/src/runner.rs @@ -26,7 +26,7 @@ use file_rotate::{compression::Compression, suffix::AppendCount, ContentLimit, F use anyhow::{anyhow, Context, Result}; use blockprod::rpc::BlockProductionRpcServer; use chainstate_launcher::{ChainConfig, StorageBackendConfig}; -use common::chain::config::{regtest_options::regtest_chain_config, Builder as ChainConfigBuilder}; +use common::chain::config::regtest_options::regtest_chain_config; use chainstate::{rpc::ChainstateRpcServer, ChainstateError, InitializationError}; use common::chain::config::{assert_no_ignore_consensus_in_chain_config, ChainType}; @@ -240,7 +240,7 @@ pub async fn setup(options: Options) -> Result { let run_options = command.run_options(); let chain_config = match &command { Command::Mainnet(_) => common::chain::config::create_mainnet(), - Command::Testnet(_) => ChainConfigBuilder::new(ChainType::Testnet).build(), + Command::Testnet(_) => common::chain::config::create_testnet(), Command::Regtest(regtest_options) => regtest_chain_config(®test_options.chain_config)?, };