Skip to content

Commit

Permalink
chainntnfs/txnotifier: include script in SpendRequest string represen…
Browse files Browse the repository at this point in the history
…tation
  • Loading branch information
halseth committed Nov 21, 2019
1 parent b1e6d9c commit 2e85647
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions chainntnfs/txnotifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -328,9 +328,10 @@ func NewSpendRequest(op *wire.OutPoint, pkScript []byte) (SpendRequest, error) {
// String returns the string representation of the SpendRequest.
func (r SpendRequest) String() string {
if r.OutPoint != ZeroOutPoint {
return fmt.Sprintf("outpoint=%v", r.OutPoint)
return fmt.Sprintf("outpoint=%v, script=%v", r.OutPoint,
r.PkScript)
}
return fmt.Sprintf("script=%v", r.PkScript)
return fmt.Sprintf("outpoint=<zero>, script=%v", r.PkScript)
}

// SpendHintKey returns the key that will be used to index the spend request's
Expand Down

0 comments on commit 2e85647

Please sign in to comment.