-
Notifications
You must be signed in to change notification settings - Fork 851
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
Add Sepolia configs and address baseFee at genesis case #2933
Add Sepolia configs and address baseFee at genesis case #2933
Conversation
…fee-at-genesis when baseFee is otherwise unspecified in the genesis config Signed-off-by: garyschulte <[email protected]>
ensure london-at-genesis has a baseFee allow override of the initial baseFee via config and overrides Signed-off-by: garyschulte <[email protected]>
Signed-off-by: garyschulte <[email protected]>
da3dd24
to
6d18543
Compare
Signed-off-by: garyschulte <[email protected]>
Signed-off-by: garyschulte <[email protected]>
Kudos, SonarCloud Quality Gate passed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quick question regarding the getGenesisBaseFeePerGas method
return getBaseFeePerGas() | ||
.map(Optional::of) | ||
.orElseGet(() -> Optional.of(BASEFEE_AT_GENESIS_DEFAULT_VALUE)) | ||
.filter(z -> 0L == getConfigOptions().getLondonBlockNumber().orElse(-1L)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have to return -1 or to throw an exception in this case ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we will return an empty Optional, the -1L
will fail to match the filter if we do not have a london block number at all
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…2933) Signed-off-by: garyschulte <[email protected]>
PR description
Fixed Issue(s)
fixes #2920
Changelog