https://travis-ci.org/github/bitcoin/bitcoin/jobs/680452476#L6107
int64_t virtual_size = GetVirtualTransactionSize(*tx);
    CAmount max_raw_tx_fee = max_raw_tx_fee_rate.GetFee(virtual_size);
    UniValue result(UniValue::VARR);
    UniValue result_0(UniValue::VOBJ);
    result_0.pushKV("txid", tx_hash.GetHex());
    TxValidationState state;
    bool test_accept_res;
    CAmount fee{0};
    {
        LOCK(cs_main);
        test_accept_res = AcceptToMemoryPool(mempool, state, std::move(tx),
            nullptr , false ,  true, &fee);
    }
    
    if (test_accept_res && max_raw_tx_fee && fee > max_raw_tx_fee) {
        result_0.pushKV("allowed", false);
        result_0.pushKV("reject-reason", "max-fee-exceeded");
        result.push_back(std::move(result_0));
        return result;
    }
    result_0.pushKV("allowed", test_accept_res);
    
    
    if (test_accept_res) {
        result_0.pushKV("vsize", virtual_size);
        UniValue fees(UniValue::VOBJ);
        fees.pushKV("base", ValueFromAmount(fee));
        result_0.pushKV("fees", fees);
    } else {
        if (state.IsInvalid()) {