From a6394c7afae7a09a2b8c5fff40075f03c7963fe5 Mon Sep 17 00:00:00 2001 From: Ivan Kuznetsov Date: Tue, 12 Sep 2017 21:10:18 +0700 Subject: [PATCH] Fix PubKey resetting --- transaction.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transaction.go b/transaction.go index 794c66c..90950cc 100644 --- a/transaction.go +++ b/transaction.go @@ -147,7 +147,7 @@ func (tx *Transaction) Verify(prevTXs map[string]Transaction) bool { txCopy.Vin[inID].Signature = nil txCopy.Vin[inID].PubKey = prevTx.Vout[vin.Vout].PubKeyHash txCopy.ID = txCopy.Hash() - txCopy.Vin[inID].PubKey = []byte{} + txCopy.Vin[inID].PubKey = nil r := big.Int{} s := big.Int{}