Skip to content

Conversation

jsvisa
Copy link
Contributor

@jsvisa jsvisa commented May 10, 2025

fixes:

  1. use current timestamp to check the fork activation instead of the block's, so when syncing behind the head, it will not print the below log;
  2. add a time check ensure current time is before the fork activation time
INFO [05-10|08:52:03.779] Ready for fork activation                fork=Prague date="07 May 25 18:05 CST" remaining=-62h46m53s timestamp=1,746,612,311

@jsvisa jsvisa requested a review from rjl493456442 as a code owner May 10, 2025 00:56
t := c.Timestamp(last)
if t == nil {
return
}
at := time.Unix(int64(*t), 0)
if current < last && time.Now().After(bc.lastForkReadyAlert.Add(forkReadyInterval)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it confuses me a lot that:

in theory, once we pass the prague fork, the current and last should all refer to PragueFork and current < last is not true, right?

@rjl493456442 rjl493456442 added this to the 1.15.12 milestone May 13, 2025
@rjl493456442 rjl493456442 merged commit 88a7ef2 into ethereum:master May 14, 2025
3 of 4 checks passed
@jsvisa jsvisa deleted the disable-prague branch July 1, 2025 01:48
howjmay pushed a commit to iotaledger/go-ethereum that referenced this pull request Aug 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants