pub fn reset(
        &mut self,
        transaction: &Transaction,
    ) -> Option<(MempoolScore, TransactionTimeRangeConstraint)> {
        // current nonce for the group needs to be reset
        let tx_nonce = transaction
            .nonce()
            .expect("nonce is not set for L2 transaction");
        self.nonce = self.nonce.min(tx_nonce);
        self.transactions
            .get(&(tx_nonce + 1))
            .map(|(tx, c)| (Self::score_for_transaction(tx), c.clone()))
    }
Handles transaction rejection. Returns optional score of its successor and time range
constraint that the transaction has been added to the mempool with
core/lib/mempool/src/types.rs