block: don't attempt verification if there was a decoding error

This commit is contained in:
Roman Khimov 2020-06-05 15:24:23 +03:00
parent f63b286c35
commit dfb26f9ab2

View file

@ -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()
}