Skip to content

Commit

Permalink
add config to address manager test.
Browse files Browse the repository at this point in the history
  • Loading branch information
D-stacks committed Jul 19, 2023
1 parent 7160a52 commit 971b896
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/addressmanager/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ mod address_store_with_cache {

use super::*;
use address_manager::AddressManager;
use kaspa_consensus_core::config::{params::SIMNET_PARAMS, Config};
use kaspa_database::utils::create_temp_db;
use kaspa_utils::networking::IpAddress;
use statest::ks::KSTest;
Expand Down Expand Up @@ -387,7 +388,8 @@ mod address_store_with_cache {
assert!(bucket_reduction_ratio >= 1.25);

let db = create_temp_db();
let am = AddressManager::new(db.1);
let config = Config::new(SIMNET_PARAMS);
let am = AddressManager::new(Arc::new(config), db.1);

let mut am_guard = am.lock();

Expand Down

0 comments on commit 971b896

Please sign in to comment.