You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This caused a bunch of cascading changes, including
passing loggers down to Channels in function calls
rather than having each Channel have a pointer to the
ChannelManager's Logger (which was a circular reference).
Other structs that the Channel had passed its Logger to also
had their loggers removed. Other newly unused Loggers were
also removed, especially when keeping them would've caused
a bunch of extra test changes to be necessary, e.g. with
the ChainWatchInterfaceUtil's Logger.
Copy file name to clipboardExpand all lines: fuzz/src/chanmon_consistency.rs
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ use bitcoin::hash_types::{BlockHash, WPubkeyHash};
22
22
23
23
use lightning::chain::chaininterface;
24
24
use lightning::chain::transaction::OutPoint;
25
-
use lightning::chain::chaininterface::{BroadcasterInterface,ConfirmationTarget,ChainListener,FeeEstimator,ChainWatchInterfaceUtil};
25
+
use lightning::chain::chaininterface::{BroadcasterInterface,ConfirmationTarget,ChainListener,FeeEstimator,ChainWatchInterfaceUtil,ChainWatchInterface};
26
26
use lightning::chain::keysinterface::{KeysInterface,InMemoryChannelKeys};
27
27
use lightning::ln::channelmonitor;
28
28
use lightning::ln::channelmonitor::{ChannelMonitor,ChannelMonitorUpdateErr,HTLCUpdate};
for(outpoint,(update_id, monitor_ser)) in old_monitors.drain(){
218
-
monitors.insert(outpoint, <(BlockHash,ChannelMonitor<EnforcingChannelKeys>)>::read(&mutCursor::new(&monitor_ser),Arc::clone(&logger)).expect("Failed to read monitor").1);
218
+
monitors.insert(outpoint, <(BlockHash,ChannelMonitor<EnforcingChannelKeys>)>::read(&mutCursor::new(&monitor_ser)).expect("Failed to read monitor").1);
0 commit comments