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
+74-14Lines changed: 74 additions & 14 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,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,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};
52
51
use util::byte_utils;
53
-
use util::events::Event;
52
+
use util::events::{AnchorDescriptor,CommitmentPendingHTLC,BumpTransaction,Event};
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");
0 commit comments