private boolean blockFull(final long cumulativeGasUsed) {
    final long gasRemaining = blockGasLimit - cumulativeGasUsed;

    if (gasRemaining < context.gasCalculator().getMinimumTransactionCost()) {
      LOG.trace(
          "Block full, remaining gas {} is less than minimum transaction gas cost {}",
          gasRemaining,
          context.gasCalculator().getMinimumTransactionCost());
      return true;
    }
    return false;
  }
Checks if the block is full.

@param cumulativeGasUsed The cumulative gas used by previous txs.
@return True if the block is full, false otherwise.
ethereum/blockcreation/src/main/java/org/hyperledger/besu/ethereum/blockcreation/txselection/selectors/BlockSizeTransactionSelector.java