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
@@ -28,9 +28,9 @@ use bitcoin::hash_types::{Txid, BlockHash, WPubkeyHash};
28
28
29
29
use lightning::chain;
30
30
use lightning::chain::chaininterface::{BroadcasterInterface,ConfirmationTarget,FeeEstimator};
31
+
use lightning::chain::channelmonitor;
31
32
use lightning::chain::transaction::OutPoint;
32
33
use lightning::chain::keysinterface::{InMemoryChannelKeys,KeysInterface};
33
-
use lightning::ln::channelmonitor;
34
34
use lightning::ln::channelmanager::{ChannelManager,PaymentHash,PaymentPreimage,PaymentSecret};
35
35
use lightning::ln::peer_handler::{MessageHandler,PeerManager,SocketDescriptor};
36
36
use lightning::routing::router::get_route;
@@ -901,6 +901,6 @@ mod tests {
901
901
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
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, 1 fulfills, 0 fails for channel 3d00000000000000000000000000000000000000000000000000000000000000".to_string())),Some(&1));// 8
903
903
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
904
-
assert_eq!(log_entries.get(&("lightning::ln::channelmonitor".to_string(),"Input spending remote commitment tx (00000000000000000000000000000000000000000000000000000000000000a1:0) in 0000000000000000000000000000000000000000000000000000000000000018 resolves outbound HTLC with payment hash ff00000000000000000000000000000000000000000000000000000000000000 with timeout".to_string())),Some(&1));// 10
904
+
assert_eq!(log_entries.get(&("lightning::chain::channelmonitor".to_string(),"Input spending remote commitment tx (00000000000000000000000000000000000000000000000000000000000000a1:0) in 0000000000000000000000000000000000000000000000000000000000000018 resolves outbound HTLC with payment hash ff00000000000000000000000000000000000000000000000000000000000000 with timeout".to_string())),Some(&1));// 10
Copy file name to clipboardExpand all lines: lightning/src/ln/channel.rs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -26,11 +26,11 @@ use bitcoin::secp256k1;
26
26
use ln::features::{ChannelFeatures,InitFeatures};
27
27
use ln::msgs;
28
28
use ln::msgs::{DecodeError,OptionalField,DataLossProtect};
29
-
use ln::channelmonitor::{ChannelMonitor,ChannelMonitorUpdate,ChannelMonitorUpdateStep,HTLC_FAIL_BACK_BUFFER};
30
29
use ln::channelmanager::{PendingHTLCStatus,HTLCSource,HTLCFailReason,HTLCFailureMsg,PendingHTLCInfo,RAACommitmentOrder,PaymentPreimage,PaymentHash,BREAKDOWN_TIMEOUT,MAX_LOCAL_BREAKDOWN_TIMEOUT};
31
30
use ln::chan_utils::{CounterpartyCommitmentSecrets,LocalCommitmentTransaction,TxCreationKeys,HTLCOutputInCommitment,HTLC_SUCCESS_TX_WEIGHT,HTLC_TIMEOUT_TX_WEIGHT, make_funding_redeemscript,ChannelPublicKeys,PreCalculatedTxCreationKeys};
32
31
use ln::chan_utils;
33
32
use chain::chaininterface::{FeeEstimator,ConfirmationTarget};
33
+
use chain::channelmonitor::{ChannelMonitor,ChannelMonitorUpdate,ChannelMonitorUpdateStep,HTLC_FAIL_BACK_BUFFER};
34
34
use chain::transaction::OutPoint;
35
35
use chain::keysinterface::{ChannelKeys,KeysInterface};
Copy file name to clipboardExpand all lines: lightning/src/ln/channelmanager.rs
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -38,9 +38,9 @@ use bitcoin::secp256k1;
38
38
use chain;
39
39
use chain::Watch;
40
40
use chain::chaininterface::{BroadcasterInterface,FeeEstimator};
41
+
use chain::channelmonitor::{ChannelMonitor,ChannelMonitorUpdate,ChannelMonitorUpdateErr,HTLC_FAIL_BACK_BUFFER,CLTV_CLAIM_BUFFER,LATENCY_GRACE_PERIOD_BLOCKS,ANTI_REORG_DELAY,MonitorEvent};
41
42
use chain::transaction::OutPoint;
42
43
use ln::channel::{Channel,ChannelError};
43
-
use ln::channelmonitor::{ChannelMonitor,ChannelMonitorUpdate,ChannelMonitorUpdateErr,HTLC_FAIL_BACK_BUFFER,CLTV_CLAIM_BUFFER,LATENCY_GRACE_PERIOD_BLOCKS,ANTI_REORG_DELAY,MonitorEvent};
Copy file name to clipboardExpand all lines: lightning/src/ln/functional_tests.rs
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -12,12 +12,12 @@
12
12
//! claim outputs on-chain.
13
13
14
14
use chain::Watch;
15
+
use chain::channelmonitor;
16
+
use chain::channelmonitor::{ChannelMonitor,CLTV_CLAIM_BUFFER,LATENCY_GRACE_PERIOD_BLOCKS,ANTI_REORG_DELAY};
15
17
use chain::transaction::OutPoint;
16
18
use chain::keysinterface::{ChannelKeys,KeysInterface,SpendableOutputDescriptor};
17
19
use ln::channel::{COMMITMENT_TX_BASE_WEIGHT,COMMITMENT_TX_WEIGHT_PER_HTLC};
18
20
use ln::channelmanager::{ChannelManager,ChannelManagerReadArgs,HTLCForwardInfo,RAACommitmentOrder,PaymentPreimage,PaymentHash,PaymentSecret,PaymentSendFailure,BREAKDOWN_TIMEOUT};
19
-
use ln::channelmonitor::{ChannelMonitor,CLTV_CLAIM_BUFFER,LATENCY_GRACE_PERIOD_BLOCKS,ANTI_REORG_DELAY};
0 commit comments