Skip to content

Commit

Permalink
Merge branch 'bws-fix-restart' of github.com:fab-10/besu into bws-fix…
Browse files Browse the repository at this point in the history
…-restart
  • Loading branch information
fab-10 committed Mar 10, 2023
2 parents b024562 + ee24951 commit 6ec18f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,6 @@ public ParsedExtraData parseExtraData(final BlockHeader header) {
}

private BlockHeaderFunctions getBlockHeaderFunctions(final SealableBlockHeader header) {
if (protocolSchedule instanceof ProtocolSchedule) {
return ((ProtocolSchedule) protocolSchedule)
.getByBlockNumber(header.getNumber())
.getBlockHeaderFunctions();
} else {
return protocolSchedule.getByBlockHeader(header).getBlockHeaderFunctions();
}
return protocolSchedule.getByBlockHeader(header).getBlockHeaderFunctions();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ private void updateFirstStoredAncestor(final Optional<BlockHeader> maybeHeader)
firstStoredAncestor = maybeHeader;
}

private void updateLastStorePivot(final Optional<BlockHeader> maybeHeader) {
private void updateLastStoredPivot(final Optional<BlockHeader> maybeHeader) {
maybeHeader.ifPresentOrElse(
header -> variablesStorage.put(LAST_STORED_PIVOT_KEY, header),
() -> variablesStorage.drop(LAST_STORED_PIVOT_KEY));
Expand Down

0 comments on commit 6ec18f4

Please sign in to comment.