Skip to content

Commit

Permalink
Reduce INITIAL_ADDRESS_IMPORT_COUNT for tests
Browse files Browse the repository at this point in the history
Greatly speeds up test_standard_coin_swap()
  • Loading branch information
chris-belcher committed Jul 14, 2021
1 parent aa6093e commit 1790387
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/wallet_sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,14 @@ use crate::error::Error;

//TODO this goes in the config file
pub const NETWORK: Network = Network::Regtest; //not configurable for now
const INITIAL_ADDRESS_IMPORT_COUNT: usize = 5000;
const DERIVATION_PATH: &str = "m/84'/1'/0'";
const WALLET_FILE_VERSION: u32 = 0;

#[cfg(not(test))]
const INITIAL_ADDRESS_IMPORT_COUNT: usize = 5000;
#[cfg(test)]
const INITIAL_ADDRESS_IMPORT_COUNT: usize = 6;

//TODO the wallet file format is probably best handled with sqlite

#[derive(serde::Serialize, serde::Deserialize)]
Expand Down

0 comments on commit 1790387

Please sign in to comment.