projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add FeeEstimator in ChannelMonitor
[rust-lightning]
/
fuzz
/
fuzz_targets
/
chanmon_fail_consistency.rs
diff --git
a/fuzz/fuzz_targets/chanmon_fail_consistency.rs
b/fuzz/fuzz_targets/chanmon_fail_consistency.rs
index f457a30913b870e4005628697f2f665519108670..dd8023ecddc9f10a1b2d4a7e553ea8285bbc7f0d 100644
(file)
--- a/
fuzz/fuzz_targets/chanmon_fail_consistency.rs
+++ b/
fuzz/fuzz_targets/chanmon_fail_consistency.rs
@@
-69,9
+69,9
@@
pub struct TestChannelMonitor {
pub update_ret: Mutex<Result<(), channelmonitor::ChannelMonitorUpdateErr>>,
}
impl TestChannelMonitor {
pub update_ret: Mutex<Result<(), channelmonitor::ChannelMonitorUpdateErr>>,
}
impl TestChannelMonitor {
- pub fn new(chain_monitor: Arc<chaininterface::ChainWatchInterface>, broadcaster: Arc<chaininterface::BroadcasterInterface>, logger: Arc<Logger>) -> Self {
+ pub fn new(chain_monitor: Arc<chaininterface::ChainWatchInterface>, broadcaster: Arc<chaininterface::BroadcasterInterface>, logger: Arc<Logger>
, feeest: Arc<chaininterface::FeeEstimator>
) -> Self {
Self {
Self {
- simple_monitor: channelmonitor::SimpleManyChannelMonitor::new(chain_monitor, broadcaster, logger),
+ simple_monitor: channelmonitor::SimpleManyChannelMonitor::new(chain_monitor, broadcaster, logger
, feeest
),
update_ret: Mutex::new(Ok(())),
}
}
update_ret: Mutex::new(Ok(())),
}
}
@@
-142,7
+142,7
@@
pub fn do_test(data: &[u8]) {
($node_id: expr) => { {
let logger: Arc<Logger> = Arc::new(test_logger::TestLogger::new($node_id.to_string()));
let watch = Arc::new(ChainWatchInterfaceUtil::new(Network::Bitcoin, Arc::clone(&logger)));
($node_id: expr) => { {
let logger: Arc<Logger> = Arc::new(test_logger::TestLogger::new($node_id.to_string()));
let watch = Arc::new(ChainWatchInterfaceUtil::new(Network::Bitcoin, Arc::clone(&logger)));
- let monitor = Arc::new(TestChannelMonitor::new(watch.clone(), broadcast.clone(), logger.clone()));
+ let monitor = Arc::new(TestChannelMonitor::new(watch.clone(), broadcast.clone(), logger.clone()
, fee_est.clone()
));
let keys_manager = Arc::new(KeyProvider { node_id: $node_id });
let mut config = UserConfig::new();
let keys_manager = Arc::new(KeyProvider { node_id: $node_id });
let mut config = UserConfig::new();