We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
BumpTransactionEvent::HTLCResolution
1 parent cd85a80 commit df0cae9Copy full SHA for df0cae9
lightning/src/events/bump_transaction/mod.rs
@@ -849,8 +849,16 @@ where
849
&self, claim_id: ClaimId, target_feerate_sat_per_1000_weight: u32,
850
htlc_descriptors: &[HTLCDescriptor], tx_lock_time: LockTime,
851
) -> Result<(), ()> {
852
+ let channel_type = &htlc_descriptors[0]
853
+ .channel_derivation_parameters
854
+ .transaction_parameters
855
+ .channel_type_features;
856
let mut htlc_tx = Transaction {
- version: Version::TWO,
857
+ version: if channel_type.supports_anchor_zero_fee_commitments() {
858
+ Version::non_standard(3)
859
+ } else {
860
+ Version::TWO
861
+ },
862
lock_time: tx_lock_time,
863
input: vec![],
864
output: vec![],
0 commit comments