Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

params: print time value instead of pointer in ConfigCompatError #29514

Merged
merged 2 commits into from Apr 30, 2024

Conversation

NathanBSC
Copy link
Contributor

@NathanBSC NathanBSC commented Apr 12, 2024

image

two errors in func ConfigCompatError as error info in the above picture

  1. RewindToTime overflow
    for dev testnet, often set timebased hardfork to 0, so they will be enabled same with London Block at genesis
    for example in genesis.json
    "shanghaiTime": 0,
    then we change it
    "shanghaiTime": 1712889032,
    and run `geth --datadir ./ init ./genesis.json, then RewindToTime will overflow to the max of uint64 type

  2. err.StoredTime and err.NewTime are pointers, print them is meaningless, their value are desired

@NathanBSC NathanBSC marked this pull request as ready for review April 12, 2024 02:34
@NathanBSC
Copy link
Contributor Author

failed test cases not related
image

params/config.go Outdated Show resolved Hide resolved
@NathanBSC
Copy link
Contributor Author

@holiman hi, updated as you suggested and a UT added.
anything other to improve this PR?

@fjl fjl changed the title fix: print value instead of pointer in ConfigCompatError params: print time value instead of pointer in ConfigCompatError Apr 30, 2024
@fjl fjl added this to the 1.14.1 milestone Apr 30, 2024
@fjl fjl merged commit 69f815f into ethereum:master Apr 30, 2024
2 checks passed
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.

None yet

4 participants