Skip to content

Commit d530ccc

Browse files
committed
add commnet
1 parent bf44805 commit d530ccc

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

crates/rollkit/src/consensus.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ impl HeaderValidator for RollkitConsensus {
7272
) -> Result<(), ConsensusError> {
7373
match self.inner.validate_header_against_parent(header, parent) {
7474
Ok(()) => Ok(()),
75+
// upstream the check is that its greater than the parent's timestamp, if not we get
76+
// TimestampIsInPast we check if the timestamp is equal to the parent's timestamp, if so we
77+
// allow it
7578
Err(ConsensusError::TimestampIsInPast { .. }) => {
7679
if header.timestamp == parent.timestamp {
7780
Ok(())

0 commit comments

Comments
 (0)