Skip to content

Commit

Permalink
pinned sync
Browse files Browse the repository at this point in the history
  • Loading branch information
tbenr committed Feb 25, 2025
1 parent 08aa980 commit c2bb2a1
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@ public CommonAncestor(final RecentChainData recentChainData, final Optional<UInt

public SafeFuture<UInt64> getCommonAncestor(
final SyncSource peer, final UInt64 firstNonFinalSlot, final UInt64 peerHeadSlot) {
if (pinnedCommonAncestorSlot
.map(slot -> slot.equals(recentChainData.getHeadSlot()))
.orElse(false)) {
if (pinnedCommonAncestorSlot.isPresent()) {
return getCommonAncestorFromPinned(peer);
}

Expand Down

0 comments on commit c2bb2a1

Please sign in to comment.