private void updatePeerChainState(final EthPeer peer, final BlockHeader blockHeader) {
    if (blockHeader.getNumber() > peer.chainState().getEstimatedHeight()) {
      LOG.atTrace()
          .setMessage("Updating chain state for peer {} to block header {}")
          .addArgument(peer::getLoggableId)
          .addArgument(blockHeader::toLogString)
          .log();
      peer.chainState().update(blockHeader);
    }
    LOG.trace("Peer chain state {}", peer.chainState());
  }
Retrieves a sequence of headers from a peer.
ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/manager/task/AbstractGetHeadersFromPeerTask.java