Bounding block timestamp to avoid surprises. Fixes #783
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user