We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf44805 commit d530cccCopy full SHA for d530ccc
1 file changed
crates/rollkit/src/consensus.rs
@@ -72,6 +72,9 @@ impl HeaderValidator for RollkitConsensus {
72
) -> Result<(), ConsensusError> {
73
match self.inner.validate_header_against_parent(header, parent) {
74
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
78
Err(ConsensusError::TimestampIsInPast { .. }) => {
79
if header.timestamp == parent.timestamp {
80
Ok(())
0 commit comments