Fix Signature resetting
This commit is contained in:
parent
465b85d5f2
commit
b6f7626a13
|
@ -144,7 +144,7 @@ func (tx *Transaction) Verify(prevTXs map[string]Transaction) bool {
|
|||
|
||||
for inID, vin := range tx.Vin {
|
||||
prevTx := prevTXs[hex.EncodeToString(vin.Txid)]
|
||||
txCopy.Vin[inID].Signature = []byte{}
|
||||
txCopy.Vin[inID].Signature = nil
|
||||
txCopy.Vin[inID].PubKey = prevTx.Vout[vin.Vout].PubKeyHash
|
||||
txCopy.ID = txCopy.Hash()
|
||||
txCopy.Vin[inID].PubKey = []byte{}
|
||||
|
|
Loading…
Reference in New Issue