Skip to content

Commit 39f814d

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 6c23b9e commit 39f814d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tapchannel/allocation.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,7 @@ func DistributeCoins(inputs []*proof.Proof, allocations []*Allocation,
454454
AnchorOutputTapscriptSibling: sibling,
455455
ScriptKey: a.ScriptKey,
456456
ProofDeliveryAddress: deliveryAddr,
457+
RelativeLockTime: uint64(a.Sequence),
457458
}
458459
p.packet.Outputs = append(p.packet.Outputs, vOut)
459460

0 commit comments

Comments
 (0)