Skip to content

Commit ac98848

Browse files
committed
tapchannel: properly set RelativeLockTime in DistributeCoins
If we don't do this here, then we'll sign a second level success transaction that doesn't have the sequence set properly. This will then propagate all the way up to anchor output, leading to an incorrect inclusion proof later.
1 parent da4df4c commit ac98848

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tapchannel/allocation.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,9 @@ func DistributeCoins(inputs []*proof.Proof, allocations []*Allocation,
454454
AnchorOutputTapscriptSibling: sibling,
455455
ScriptKey: a.ScriptKey,
456456
ProofDeliveryAddress: deliveryAddr,
457+
RelativeLockTime: uint64(
458+
a.Sequence,
459+
),
457460
}
458461
p.packet.Outputs = append(p.packet.Outputs, vOut)
459462

0 commit comments

Comments
 (0)