forked from TrueCloudLab/neoneo-go
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
|
txes[i] = tx
|
||||||
}
|
}
|
||||||
b.Transactions = txes
|
b.Transactions = txes
|
||||||
|
if br.Err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
br.Err = b.Verify()
|
br.Err = b.Verify()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue