Skip to content

Commit

Permalink
[Aptos Node] Fix config merge test.
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshLind committed Mar 2, 2024
1 parent 95ad738 commit 2312cfa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion aptos-node/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use aptos_admin_service::AdminService;
use aptos_api::bootstrap as bootstrap_api;
use aptos_build_info::build_information;
use aptos_config::config::{
merge_node_config, InitialSafetyRulesConfig, NodeConfig, PersistableConfig,
merge_node_config, BootstrappingMode, InitialSafetyRulesConfig, NodeConfig, PersistableConfig,
};
use aptos_dkg_runtime::start_dkg_runtime;
use aptos_framework::ReleaseBundle;
Expand Down Expand Up @@ -558,6 +558,8 @@ where
node_config.mempool.default_failovers = 1;
node_config.mempool.max_broadcasts_per_peer = 1;

node_config.state_sync.state_sync_driver.bootstrapping_mode =
BootstrappingMode::ExecuteOrApplyFromGenesis;
node_config
.state_sync
.state_sync_driver
Expand Down
4 changes: 2 additions & 2 deletions aptos-node/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ fn test_create_single_node_test_config() {
merged_config
.state_sync
.state_sync_driver
.bootstrapping_mode,
.continuous_syncing_mode,
default_node_config
.state_sync
.state_sync_driver
.bootstrapping_mode
.continuous_syncing_mode
);
}

0 comments on commit 2312cfa

Please sign in to comment.