Fix PubKey resetting

This commit is contained in:
Ivan Kuznetsov 2017-09-12 21:10:18 +07:00
parent b6f7626a13
commit a6394c7afa
1 changed files with 1 additions and 1 deletions

View File

@ -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{}