Skip to content

Commit b37437d

Browse files
gijswijsguggero
authored andcommitted
multi: remove witness parameter from 'NewAltLeaf`
Since we're only ever passing nil (and we use the previous witness in the script/burn key), we just remove the witness parameter completely.
1 parent 6585405 commit b37437d

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

tapsend/send.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1995,10 +1995,6 @@ func ValidateAnchorInputs(anchorPacket *psbt.Packet, packets []*tappsbt.VPacket,
19951995
inputAssets[outpoint], vIn.Asset(),
19961996
)
19971997
inputSiblings[outpoint] = sibling
1998-
inputAltLeaves[outpoint] = append(
1999-
inputAltLeaves[outpoint],
2000-
asset.CopyAltLeaves(vIn.AltLeaves)...,
2001-
)
20021998
inputScripts[outpoint] = anchorIn.WitnessUtxo.PkScript
20031999
inputAnchors[outpoint] = vIn.Anchor
20042000
}

0 commit comments

Comments
 (0)