Skip to content

Commit

Permalink
fix: opbnb p2p forkid mismatch issue (#26)
Browse files Browse the repository at this point in the history
Co-authored-by: Keefe Liu <keefe.l@users.noreply.github.com>
  • Loading branch information
keefel and Keefe Liu authored Jun 3, 2024
1 parent a4d7ef5 commit 6a63951
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions crates/primitives/src/chain/spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -965,13 +965,13 @@ impl ChainSpec {
for timestamp in self.forks_iter().filter_map(|(_, cond)| {
cond.as_timestamp().filter(|time| time > &self.genesis.timestamp)
}) {
// Skip Fermat hardfork for opbnb
if timestamp == 1698991506 || timestamp == 1701151200 {
continue;
}

let cond = ForkCondition::Timestamp(timestamp);
if cond.active_at_head(head) {
// Skip Fermat hardfork for opbnb
if timestamp == 1698991506 || timestamp == 1701151200 {
continue;
}

if timestamp != current_applied {
forkhash += timestamp;
current_applied = timestamp;
Expand Down

0 comments on commit 6a63951

Please sign in to comment.