Skip to content

Commit

Permalink
tapfreighter: populate outpoint in outbound proof locator
Browse files Browse the repository at this point in the history
This change ensures that the locator contains different values between
two different send events which re-use the same Taproot Asset address.
  • Loading branch information
ffranr committed Sep 25, 2023
1 parent 2129b51 commit 30b333d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tapfreighter/chain_porter.go
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,7 @@ func (p *ChainPorter) storeProofs(sendPkg *sendPackage) error {
outputProofLocator := proof.Locator{
AssetID: &firstInput.ID,
ScriptKey: *out.ScriptKey.PubKey,
OutPoint: &firstInput.OutPoint,
}
outputProof := &proof.AnnotatedProof{
Locator: outputProofLocator,
Expand Down

0 comments on commit 30b333d

Please sign in to comment.