Skip to content

Commit

Permalink
fix: fix console wallet buffer size bug (#3200)
Browse files Browse the repository at this point in the history
  • Loading branch information
stringhandler committed Aug 17, 2021
2 parents 305aeda + e6d9672 commit b94667f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions applications/tari_console_wallet/src/init/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ pub async fn init_wallet(
);

let factories = CryptoFactories::default();
let mut wallet_config = WalletConfig::new(
let wallet_config = WalletConfig::new(
comms_config.clone(),
factories,
Some(TransactionServiceConfig {
Expand All @@ -376,11 +376,13 @@ pub async fn init_wallet(
}),
config.network.into(),
Some(base_node_service_config),
Some(config.buffer_size_console_wallet),
Some(std::cmp::max(
BASE_NODE_BUFFER_MIN_SIZE,
config.buffer_size_console_wallet,
)),
Some(config.buffer_rate_limit_console_wallet),
Some(config.scan_for_utxo_interval),
);
wallet_config.buffer_size = std::cmp::max(BASE_NODE_BUFFER_MIN_SIZE, config.buffer_size_base_node);

let mut wallet = Wallet::start(
wallet_config,
Expand Down

0 comments on commit b94667f

Please sign in to comment.