Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
  • Loading branch information
fab-10 committed Mar 10, 2023
1 parent 6ec18f4 commit c29c9df
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public synchronized void prependAncestorsHeader(
}

if (firstStoredAncestor.isEmpty()) {
updateLastStorePivot(Optional.of(blockHeader));
updateLastStoredPivot(Optional.of(blockHeader));
} else {
final BlockHeader firstHeader = firstStoredAncestor.get();
chainStorage.put(blockHeader.getHash(), firstHeader.getHash());
Expand Down Expand Up @@ -175,7 +175,7 @@ public synchronized void dropFirstHeader() {
chainStorage.drop(firstStoredAncestor.get().getHash());
updateFirstStoredAncestor(hash.flatMap(headers::get));
if (firstStoredAncestor.isEmpty()) {
updateLastStorePivot(Optional.empty());
updateLastStoredPivot(Optional.empty());
}
}

Expand All @@ -202,7 +202,7 @@ public synchronized void appendTrustedBlock(final Block newPivot) {
.log();
}
}
updateLastStorePivot(Optional.of(newPivot.getHeader()));
updateLastStoredPivot(Optional.of(newPivot.getHeader()));
}

public synchronized boolean isTrusted(final Hash hash) {
Expand Down

0 comments on commit c29c9df

Please sign in to comment.