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
Copy file name to clipboardExpand all lines: lightning/src/chain/channelmonitor.rs
+77-16Lines changed: 77 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -21,8 +21,7 @@
21
21
//! ChannelMonitors to get out of the HSM and onto monitoring devices.
22
22
23
23
use bitcoin::blockdata::block::BlockHeader;
24
-
use bitcoin::blockdata::transaction::{TxOut,Transaction};
25
-
use bitcoin::blockdata::transaction::OutPointasBitcoinOutPoint;
24
+
use bitcoin::blockdata::transaction::{OutPointasBitcoinOutPoint,Sequence,TxOut,Transaction};
26
25
use bitcoin::blockdata::script::{Script,Builder};
27
26
use bitcoin::blockdata::opcodes;
28
27
@@ -44,13 +43,13 @@ use chain::{BestBlock, WatchedOutput};
44
43
use chain::chaininterface::{BroadcasterInterface,FeeEstimator,LowerBoundedFeeEstimator};
45
44
use chain::transaction::{OutPoint,TransactionData};
46
45
use chain::keysinterface::{SpendableOutputDescriptor,StaticPaymentOutputDescriptor,DelayedPaymentOutputDescriptor,Sign,KeysInterface};
47
-
use chain::onchaintx::OnchainTxHandler;
46
+
use chain::onchaintx::{ClaimEvent,OnchainTxHandler};
48
47
use chain::package::{CounterpartyOfferedHTLCOutput,CounterpartyReceivedHTLCOutput,HolderFundingOutput,HolderHTLCOutput,Input,PackageSolvingData,PackageTemplate,RevokedOutput,RevokedHTLCOutput};
49
48
use chain::Filter;
50
49
use util::logger::Logger;
51
50
use util::ser::{Readable,ReadableArgs,MaybeReadable,Writer,Writeable,U48,OptionDeserWrapper};
log_error!(logger,"You have a toxic holder commitment transaction avaible in channel monitor, read comment in ChannelMonitor::get_latest_holder_commitment_txn to be informed of manual action to take");
/// Lightning security model (i.e being able to redeem/timeout HTLC or penalize coutnerparty onchain) lays on the assumption of claim transactions getting confirmed before timelock expiration
395
401
/// (CSV or CLTV following cases). In case of high-fee spikes, claim tx may stuck in the mempool, so you need to bump its feerate quickly using Replace-By-Fee or Child-Pay-For-Parent.
396
402
/// Panics if there are signing errors, because signing operations in reaction to on-chain events
0 commit comments