@@ -16314,7 +16314,7 @@ mod tests {
1631416314pub mod bench {
1631516315 use crate::chain::Listen;
1631616316 use crate::chain::chainmonitor::{ChainMonitor, Persist};
16317- use crate::sign::{KeysManager, InMemorySigner};
16317+ use crate::sign::{KeysManager, InMemorySigner, NodeSigner };
1631816318 use crate::events::{Event, MessageSendEvent, MessageSendEventsProvider};
1631916319 use crate::ln::channelmanager::{BestBlock, ChainParameters, ChannelManager, PaymentHash, PaymentPreimage, PaymentId, RecipientOnionFields, Retry};
1632016320 use crate::ln::functional_test_utils::*;
@@ -16377,19 +16377,19 @@ pub mod bench {
1637716377 config.channel_config.max_dust_htlc_exposure = MaxDustHTLCExposure::FeeRateMultiplier(5_000_000 / 253);
1637816378 config.channel_handshake_config.minimum_depth = 1;
1637916379
16380- let chain_monitor_a = ChainMonitor::new(None, &tx_broadcaster, &logger_a, &fee_estimator, &persister_a);
1638116380 let seed_a = [1u8; 32];
1638216381 let keys_manager_a = KeysManager::new(&seed_a, 42, 42);
16382+ let chain_monitor_a = ChainMonitor::new(None, &tx_broadcaster, &logger_a, &fee_estimator, &persister_a, keys_manager_a.get_peer_storage_key());
1638316383 let node_a = ChannelManager::new(&fee_estimator, &chain_monitor_a, &tx_broadcaster, &router, &message_router, &logger_a, &keys_manager_a, &keys_manager_a, &keys_manager_a, config.clone(), ChainParameters {
1638416384 network,
1638516385 best_block: BestBlock::from_network(network),
1638616386 }, genesis_block.header.time);
1638716387 let node_a_holder = ANodeHolder { node: &node_a };
1638816388
1638916389 let logger_b = test_utils::TestLogger::with_id("node a".to_owned());
16390- let chain_monitor_b = ChainMonitor::new(None, &tx_broadcaster, &logger_a, &fee_estimator, &persister_b);
1639116390 let seed_b = [2u8; 32];
1639216391 let keys_manager_b = KeysManager::new(&seed_b, 42, 42);
16392+ let chain_monitor_b = ChainMonitor::new(None, &tx_broadcaster, &logger_a, &fee_estimator, &persister_b, keys_manager_b.get_peer_storage_key());
1639316393 let node_b = ChannelManager::new(&fee_estimator, &chain_monitor_b, &tx_broadcaster, &router, &message_router, &logger_b, &keys_manager_b, &keys_manager_b, &keys_manager_b, config.clone(), ChainParameters {
1639416394 network,
1639516395 best_block: BestBlock::from_network(network),
0 commit comments