todo
This commit is contained in:
parent
a9e0f8e318
commit
9cbf68a8ad
|
@ -169,6 +169,7 @@ impl Verify for ChainVerifier {
|
||||||
return Err(Error::MerkleRoot);
|
return Err(Error::MerkleRoot);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// todo: serialized_size function is at least suboptimal
|
||||||
let size = ::serialization::Serializable::serialized_size(block);
|
let size = ::serialization::Serializable::serialized_size(block);
|
||||||
if size >= MAX_BLOCK_SIZE {
|
if size >= MAX_BLOCK_SIZE {
|
||||||
return Err(Error::Size(size))
|
return Err(Error::Size(size))
|
||||||
|
|
Loading…
Reference in New Issue