Skip to content

Commit

Permalink
tapfreighter: don't send proofs for tombstones
Browse files Browse the repository at this point in the history
Don't attempt to send proofs for tombstone outputs.
  • Loading branch information
guggero committed Oct 9, 2023
1 parent b8af77d commit b1a7c70
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tapfreighter/chain_porter.go
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,18 @@ func (p *ChainPorter) transferReceiverProof(pkg *sendPackage) error {
return nil
}

unSpendable, err := out.ScriptKey.IsUnSpendable()
if err != nil {
return fmt.Errorf("error checking if script key is "+
"unspendable: %w", err)
}
if unSpendable {
log.Debugf("Not transferring proof for un-spendable "+
"output script key %x",
key.SerializeCompressed())
return nil
}

// We just look for the full proof in the list of final proofs
// by matching the content of the proof suffix.
var receiverProof *proof.AnnotatedProof
Expand Down

0 comments on commit b1a7c70

Please sign in to comment.