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
Given the chain::Watch interface is defined in terms of ChannelMonitor
and ChannelMonitorUpdateErr, move channelmonitor.rs from the ln module
to the chain module.
Copy file name to clipboardExpand all lines: fuzz/src/full_stack.rs
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -27,9 +27,9 @@ use bitcoin::hash_types::{Txid, BlockHash, WPubkeyHash};
27
27
28
28
use lightning::chain;
29
29
use lightning::chain::chaininterface::{BroadcasterInterface,ConfirmationTarget,FeeEstimator};
30
+
use lightning::chain::channelmonitor;
30
31
use lightning::chain::transaction::OutPoint;
31
32
use lightning::chain::keysinterface::{InMemoryChannelKeys,KeysInterface};
32
-
use lightning::ln::channelmonitor;
33
33
use lightning::ln::channelmanager::{ChannelManager,PaymentHash,PaymentPreimage,PaymentSecret};
34
34
use lightning::ln::peer_handler::{MessageHandler,PeerManager,SocketDescriptor};
35
35
use lightning::routing::router::get_route;
@@ -900,6 +900,6 @@ mod tests {
900
900
assert_eq!(log_entries.get(&("lightning::ln::peer_handler".to_string(),"Handling UpdateHTLCs event in peer_handler for node 030200000000000000000000000000000000000000000000000000000000000000 with 1 adds, 0 fulfills, 0 fails for channel 3900000000000000000000000000000000000000000000000000000000000000".to_string())),Some(&3));// 7
901
901
assert_eq!(log_entries.get(&("lightning::ln::peer_handler".to_string(),"Handling UpdateHTLCs event in peer_handler for node 030000000000000000000000000000000000000000000000000000000000000000 with 0 adds, 1 fulfills, 0 fails for channel 3d00000000000000000000000000000000000000000000000000000000000000".to_string())),Some(&1));// 8
902
902
assert_eq!(log_entries.get(&("lightning::ln::peer_handler".to_string(),"Handling UpdateHTLCs event in peer_handler for node 030000000000000000000000000000000000000000000000000000000000000000 with 0 adds, 0 fulfills, 1 fails for channel 3d00000000000000000000000000000000000000000000000000000000000000".to_string())),Some(&2));// 9
903
-
assert_eq!(log_entries.get(&("lightning::ln::channelmonitor".to_string(),"Input spending counterparty commitment tx (00000000000000000000000000000000000000000000000000000000000000a1:0) in 0000000000000000000000000000000000000000000000000000000000000018 resolves outbound HTLC with payment hash ff00000000000000000000000000000000000000000000000000000000000000 with timeout".to_string())),Some(&1));// 10
903
+
assert_eq!(log_entries.get(&("lightning::chain::channelmonitor".to_string(),"Input spending counterparty commitment tx (00000000000000000000000000000000000000000000000000000000000000a1:0) in 0000000000000000000000000000000000000000000000000000000000000018 resolves outbound HTLC with payment hash ff00000000000000000000000000000000000000000000000000000000000000 with timeout".to_string())),Some(&1));// 10
0 commit comments