This commit is contained in:
NikVolf 2016-11-15 23:03:52 +03:00
parent a9e0f8e318
commit 9cbf68a8ad
1 changed files with 1 additions and 0 deletions

View File

@ -169,6 +169,7 @@ impl Verify for ChainVerifier {
return Err(Error::MerkleRoot);
}
// todo: serialized_size function is at least suboptimal
let size = ::serialization::Serializable::serialized_size(block);
if size >= MAX_BLOCK_SIZE {
return Err(Error::Size(size))