diff --git a/core/src/core/block.rs b/core/src/core/block.rs index 4bb9bc605..d6cc8b997 100644 --- a/core/src/core/block.rs +++ b/core/src/core/block.rs @@ -186,6 +186,10 @@ impl Readable for BlockHeader { let total_kernel_offset = BlindingFactor::read(reader)?; let pow = Proof::read(reader)?; + if timestamp > (1 << 60) { + return Err(ser::Error::CorruptedData); + } + Ok(BlockHeader { version: version, height: height,