public boolean hasSupportForMessage(final int messageCode) {
    return getAgreedCapabilities().stream()
        .anyMatch(cap -> EthProtocol.get().isValidMessageCode(cap.getVersion(), messageCode));
  }
Return A read-only snapshot of this peer's current {@code chainState}

@return A read-only snapshot of this peer's current {@code chainState}
ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/manager/EthPeer.java