diff --git a/core/src/verification/verification.rs b/core/src/verification/verification.rs index 5ed1fb2a38..c98d831846 100644 --- a/core/src/verification/verification.rs +++ b/core/src/verification/verification.rs @@ -230,10 +230,10 @@ fn verify_parent(header: &Header, parent: &Header) -> Result<(), Error> { found: *header.parent_hash(), }))) } - if header.timestamp() < parent.timestamp() { + if header.timestamp() <= parent.timestamp() { return Err(From::from(BlockError::InvalidTimestamp(OutOfBounds { max: None, - min: Some(parent.timestamp()), + min: Some(parent.timestamp() + 1), found: header.timestamp(), }))) } diff --git a/types/src/header.rs b/types/src/header.rs index d58aaccf7e..8fb730f4bf 100644 --- a/types/src/header.rs +++ b/types/src/header.rs @@ -271,7 +271,7 @@ impl Header { header.set_parent_hash(self.hash()); header.set_number(self.number() + 1); - header.set_timestamp_now(self.timestamp()); + header.set_timestamp_now(self.timestamp() + 1); header.note_dirty(); header