private TransactionSelectionResult evaluateTransaction(
      final PendingTransaction pendingTransaction) {
    final var evaluationResult = evaluatePendingTransaction(pendingTransaction);

    if (evaluationResult.selected()) {
      return commit() ? evaluationResult : BLOCK_SELECTION_TIMEOUT;
    } else {
      rollback();
      return evaluationResult;
    }
  }
Evaluates a list of transactions and updates the selection results accordingly. If a
transaction is not selected during the evaluation, it is updated as not selected in the
transaction selection results.

@param transactions The list of transactions to be evaluated.
@return The {@code TransactionSelectionResults} containing the results of the transaction
    evaluations.
ethereum/blockcreation/src/main/java/org/hyperledger/besu/ethereum/blockcreation/txselection/BlockTransactionSelector.java