X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Futil%2Ftest_utils.rs;h=5da647efebd96eda15341074b022240b17c181e2;hb=64bd2eaa7ff9d9f6270af1fb631347fdc08a2885;hp=0eb49702a02dee95889679cc85556e8810b2d7df;hpb=8cc3be9eab9ff322d543e989f28c775a69d6b78f;p=rust-lightning diff --git a/src/util/test_utils.rs b/src/util/test_utils.rs index 0eb49702..5da647ef 100644 --- a/src/util/test_utils.rs +++ b/src/util/test_utils.rs @@ -42,10 +42,10 @@ pub struct TestChannelMonitor { pub update_ret: Mutex>, } impl TestChannelMonitor { - pub fn new(chain_monitor: Arc, broadcaster: Arc) -> Self { + pub fn new(chain_monitor: Arc, broadcaster: Arc, logger: Arc) -> Self { Self { added_monitors: Mutex::new(Vec::new()), - simple_monitor: channelmonitor::SimpleManyChannelMonitor::new(chain_monitor, broadcaster), + simple_monitor: channelmonitor::SimpleManyChannelMonitor::new(chain_monitor, broadcaster, logger), update_ret: Mutex::new(Ok(())), } }