From 2e85647ec467c37183bc3beb957c20e20a329394 Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Thu, 14 Nov 2019 15:25:16 +0100 Subject: [PATCH] chainntnfs/txnotifier: include script in SpendRequest string representation --- chainntnfs/txnotifier.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/chainntnfs/txnotifier.go b/chainntnfs/txnotifier.go index 8c16966f..2170b297 100644 --- a/chainntnfs/txnotifier.go +++ b/chainntnfs/txnotifier.go @@ -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=, script=%v", r.PkScript) } // SpendHintKey returns the key that will be used to index the spend request's