Skip to content

Commit

Permalink
Merge tari-project#2220: update defaults with stress test values
Browse files Browse the repository at this point in the history
We've been using these config values for the stress tests, which means we
probably want base nodes to use these by default
  • Loading branch information
stringhandler committed Sep 15, 2020
2 parents b61336b + 4bea463 commit e8e2087
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions common/src/configuration/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ pub fn default_config(bootstrap: &ConfigBootstrap) -> Config {
)
.unwrap();
cfg.set_default("common.denylist_ban_period", 1440).unwrap();
cfg.set_default("common.buffer_size_base_node", 100).unwrap();
cfg.set_default("common.buffer_size_base_node_wallet", 1000).unwrap();
cfg.set_default("common.buffer_rate_limit_base_node", 20).unwrap();
cfg.set_default("common.buffer_rate_limit_base_node_wallet", 20)
cfg.set_default("common.buffer_size_base_node", 1_500).unwrap();
cfg.set_default("common.buffer_size_base_node_wallet", 50_000).unwrap();
cfg.set_default("common.buffer_rate_limit_base_node", 1_000).unwrap();
cfg.set_default("common.buffer_rate_limit_base_node_wallet", 1_000)
.unwrap();

// Wallet settings
Expand All @@ -72,13 +72,13 @@ pub fn default_config(bootstrap: &ConfigBootstrap) -> Config {
default_subdir("wallet/wallet.dat", Some(&bootstrap.base_path)),
)
.unwrap();
cfg.set_default("wallet.base_node_query_timeout", 30).unwrap();
cfg.set_default("wallet.transaction_broadcast_monitoring_timeout", 30)
cfg.set_default("wallet.base_node_query_timeout", 900).unwrap();
cfg.set_default("wallet.transaction_broadcast_monitoring_timeout", 600)
.unwrap();
cfg.set_default("wallet.transaction_chain_monitoring_timeout", 30)
cfg.set_default("wallet.transaction_chain_monitoring_timeout", 15)
.unwrap();
cfg.set_default("wallet.transaction_direct_send_timeout", 20).unwrap();
cfg.set_default("wallet.transaction_broadcast_send_timeout", 30)
cfg.set_default("wallet.transaction_direct_send_timeout", 600).unwrap();
cfg.set_default("wallet.transaction_broadcast_send_timeout", 600)
.unwrap();

//---------------------------------- Mainnet Defaults --------------------------------------------//
Expand Down

0 comments on commit e8e2087

Please sign in to comment.