Skip to content

Commit df0cae9

Browse files
committed
Set HTLC tx version 3 on handling BumpTransactionEvent::HTLCResolution
1 parent cd85a80 commit df0cae9

File tree

1 file changed

+9
-1
lines changed
  • lightning/src/events/bump_transaction

1 file changed

+9
-1
lines changed

lightning/src/events/bump_transaction/mod.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -849,8 +849,16 @@ where
849849
&self, claim_id: ClaimId, target_feerate_sat_per_1000_weight: u32,
850850
htlc_descriptors: &[HTLCDescriptor], tx_lock_time: LockTime,
851851
) -> Result<(), ()> {
852+
let channel_type = &htlc_descriptors[0]
853+
.channel_derivation_parameters
854+
.transaction_parameters
855+
.channel_type_features;
852856
let mut htlc_tx = Transaction {
853-
version: Version::TWO,
857+
version: if channel_type.supports_anchor_zero_fee_commitments() {
858+
Version::non_standard(3)
859+
} else {
860+
Version::TWO
861+
},
854862
lock_time: tx_lock_time,
855863
input: vec![],
856864
output: vec![],

0 commit comments

Comments
 (0)