block: don't attempt verification if there was a decoding error
This commit is contained in:
parent
f63b286c35
commit
dfb26f9ab2
1 changed files with 3 additions and 0 deletions
|
@ -160,6 +160,9 @@ func (b *Block) DecodeBinary(br *io.BinReader) {
|
|||
txes[i] = tx
|
||||
}
|
||||
b.Transactions = txes
|
||||
if br.Err != nil {
|
||||
return
|
||||
}
|
||||
br.Err = b.Verify()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue