private boolean validMessageHeight(final long msgChainHeight, final long currentHeight) {
    final boolean isFutureMsg = msgChainHeight > currentHeight;
    final boolean withinMaxChainHeight =
        msgChainHeight <= currentHeight + futureMessagesMaxDistance;
    return isFutureMsg && withinMaxChainHeight;
  }
Add message.

@param msgChainHeight the msg chain height
@param rawMsg the raw msg
consensus/common/src/main/java/org/hyperledger/besu/consensus/common/bft/statemachine/FutureMessageBuffer.java