private boolean isSamePivotBlock(final FastSyncState fss) {
    return lastPivotBlockFound.isPresent()
        && fss.hasPivotBlockHash()
        && lastPivotBlockFound.get().getHash().equals(fss.getPivotBlockHash().get());
  }
DynamicPivotBlockSelector is responsible for dynamically selecting the pivot block for Snapsync.
It uses an algorithm to find the most suitable pivot block based on the current network
conditions.
ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/sync/snapsync/DynamicPivotBlockSelector.java