Package org.ldk.structs
Class BumpTransactionEvent
- java.lang.Object
-
- org.ldk.structs.BumpTransactionEvent
-
- Direct Known Subclasses:
BumpTransactionEvent.ChannelClose,BumpTransactionEvent.HTLCResolution
public class BumpTransactionEvent extends Object
Represents the different types of transactions, originating from LDK, to be bumped.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBumpTransactionEvent.ChannelCloseIndicates that a channel featuring anchor outputs is to be closed by broadcasting the local commitment transaction.static classBumpTransactionEvent.HTLCResolutionIndicates that a channel featuring anchor outputs has unilaterally closed on-chain by a holder commitment transaction and its HTLC(s) need to be resolved on-chain.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BumpTransactionEventchannel_close(byte[] claim_id, int package_target_feerate_sat_per_1000_weight, byte[] commitment_tx, long commitment_tx_fee_satoshis, AnchorDescriptor anchor_descriptor, HTLCOutputInCommitment[] pending_htlcs)Utility method to constructs a new ChannelClose-variant BumpTransactionEventBumpTransactionEventclone()Creates a copy of the BumpTransactionEventbooleaneq(BumpTransactionEvent b)Checks if two BumpTransactionEvents contain equal inner contents.booleanequals(Object o)protected voidfinalize()static BumpTransactionEventhtlcresolution(byte[] claim_id, int target_feerate_sat_per_1000_weight, HTLCDescriptor[] htlc_descriptors, int tx_lock_time)Utility method to constructs a new HTLCResolution-variant BumpTransactionEvent
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
clone
public BumpTransactionEvent clone()
Creates a copy of the BumpTransactionEvent
-
channel_close
public static BumpTransactionEvent channel_close(byte[] claim_id, int package_target_feerate_sat_per_1000_weight, byte[] commitment_tx, long commitment_tx_fee_satoshis, AnchorDescriptor anchor_descriptor, HTLCOutputInCommitment[] pending_htlcs)
Utility method to constructs a new ChannelClose-variant BumpTransactionEvent
-
htlcresolution
public static BumpTransactionEvent htlcresolution(byte[] claim_id, int target_feerate_sat_per_1000_weight, HTLCDescriptor[] htlc_descriptors, int tx_lock_time)
Utility method to constructs a new HTLCResolution-variant BumpTransactionEvent
-
eq
public boolean eq(BumpTransactionEvent b)
Checks if two BumpTransactionEvents contain equal inner contents. This ignores pointers and is_owned flags and looks at the values in fields.
-
-