Skip to content

Commit

Permalink
Change withdrawals genesis check to work off genesis timestamp
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Frame <jason.frame@consensys.net>
  • Loading branch information
jframe committed Dec 1, 2022
1 parent 1aac893 commit 3244068
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,9 @@ private static long parseUnsignedLong(final String value) {
}

private static boolean isShanghaiAtGenesis(final GenesisConfigFile genesis) {
final OptionalLong shanghaiBlockNumber = genesis.getConfigOptions().getShanghaiBlockNumber();
if (shanghaiBlockNumber.isPresent()) {
return shanghaiBlockNumber.getAsLong() == BlockHeader.GENESIS_BLOCK_NUMBER;
final OptionalLong shanghaiTimestamp = genesis.getConfigOptions().getShanghaiTimestamp();
if (shanghaiTimestamp.isPresent()) {
return shanghaiTimestamp.getAsLong() == genesis.getTimestamp();
}
return false;
}
Expand Down

0 comments on commit 3244068

Please sign in to comment.