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
Tell ChannelMonitors about HTLCs fulfilled after channel close
If a channel is about to hit the chain right as we receive a preimage,
prior to this commit the relevant ChannelMonitor would never learn of this
preimage.
Copy file name to clipboardExpand all lines: lightning/src/ln/channel.rs
+12-3Lines changed: 12 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ use bitcoin::secp256k1;
25
25
use ln::features::{ChannelFeatures,InitFeatures};
26
26
use ln::msgs;
27
27
use ln::msgs::{DecodeError,OptionalField,DataLossProtect};
28
-
use ln::channelmanager::{PendingHTLCStatus,HTLCSource,HTLCFailReason,HTLCFailureMsg,PendingHTLCInfo,RAACommitmentOrder,PaymentPreimage,PaymentHash,BREAKDOWN_TIMEOUT,MAX_LOCAL_BREAKDOWN_TIMEOUT};
28
+
use ln::channelmanager::{PendingHTLCStatus,HTLCSource,HTLCFailReason,HTLCFailureMsg,PendingHTLCInfo,RAACommitmentOrder,PaymentPreimage,PaymentHash,BREAKDOWN_TIMEOUT,MAX_LOCAL_BREAKDOWN_TIMEOUT,MonitorUpdateInfo};
29
29
use ln::chan_utils::{CounterpartyCommitmentSecrets,HolderCommitmentTransaction,TxCreationKeys,HTLCOutputInCommitment,HTLC_SUCCESS_TX_WEIGHT,HTLC_TIMEOUT_TX_WEIGHT, make_funding_redeemscript,ChannelPublicKeys,PreCalculatedTxCreationKeys};
30
30
use ln::chan_utils;
31
31
use chain::chaininterface::{FeeEstimator,ConfirmationTarget};
Copy file name to clipboardExpand all lines: lightning/src/ln/channelmanager.rs
+27-8Lines changed: 27 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ use bitcoin::secp256k1;
37
37
use chain;
38
38
use chain::Watch;
39
39
use chain::chaininterface::{BroadcasterInterface,FeeEstimator};
40
-
use chain::channelmonitor::{ChannelMonitor,ChannelMonitorUpdate,ChannelMonitorUpdateErr,HTLC_FAIL_BACK_BUFFER,CLTV_CLAIM_BUFFER,LATENCY_GRACE_PERIOD_BLOCKS,ANTI_REORG_DELAY,MonitorEvent};
40
+
use chain::channelmonitor::{ChannelMonitor,ChannelMonitorUpdate,ChannelMonitorUpdateStep,ChannelMonitorUpdateErr,HTLC_FAIL_BACK_BUFFER,CLTV_CLAIM_BUFFER,LATENCY_GRACE_PERIOD_BLOCKS,ANTI_REORG_DELAY,MonitorEvent};
41
41
use chain::transaction::{OutPoint,TransactionData};
0 commit comments