Skip to content

Commit

Permalink
Fix block replay to work with Shanghai blocks
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
  • Loading branch information
siladu committed Jan 18, 2023
1 parent a7c96ca commit 9f16032
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -139,7 +139,7 @@ private <T> Optional<T> performActionWithBlock(
if (body == null) {
return Optional.empty();
}
final ProtocolSpec protocolSpec = protocolSchedule.getByBlockNumber(header.getNumber());
final ProtocolSpec protocolSpec = protocolSchedule.getByBlockHeader(header);
final MainnetTransactionProcessor transactionProcessor = protocolSpec.getTransactionProcessor();
final BlockHeader previous = blockchain.getBlockHeader(header.getParentHash()).orElse(null);
if (previous == null) {
Expand Down

0 comments on commit 9f16032

Please sign in to comment.