Skip to content

Commit 112c8d2

Browse files
gijswijsguggero
authored andcommitted
tapsend: refactor outIndex usage
1 parent 103acfe commit 112c8d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tapsend/proof.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -336,13 +336,13 @@ func addOtherOutputExclusionProofs(outputs []*tappsbt.VOutput,
336336
for idx := range outputs {
337337
vOut := outputs[idx]
338338

339-
haveIProof := params.HaveInclusionProof(vOut.AnchorOutputIndex)
340-
haveEProof := params.HaveExclusionProof(vOut.AnchorOutputIndex)
339+
outIndex := vOut.AnchorOutputIndex
340+
haveIProof := params.HaveInclusionProof(outIndex)
341+
haveEProof := params.HaveExclusionProof(outIndex)
341342
if haveIProof || haveEProof {
342343
continue
343344
}
344345

345-
outIndex := vOut.AnchorOutputIndex
346346
tapTree := outputCommitments[outIndex]
347347

348348
_, splitExclusionProof, err := tapTree.Proof(

0 commit comments

Comments
 (0)