diff --git a/src/rpc/mempool.cpp b/src/rpc/mempool.cpp index 3e41f00651..031a31f28c 100644 --- a/src/rpc/mempool.cpp +++ b/src/rpc/mempool.cpp @@ -45,7 +45,7 @@ static RPCHelpMan sendrawtransaction() {"hexstring", RPCArg::Type::STR_HEX, RPCArg::Optional::NO, "The hex string of the raw transaction"}, {"maxfeerate", RPCArg::Type::AMOUNT, RPCArg::Default{FormatMoney(DEFAULT_MAX_RAW_TX_FEE_RATE.GetFeePerK())}, "Reject transactions whose fee rate is higher than the specified value, expressed in " + CURRENCY_UNIT + - "/kvB.\nFee rates larger than 1BTC/kvB are rejected.\nSet to 0 to accept any fee rate."}, + "/kvB.\nFee rates larger than 10QTUM/kvB are rejected.\nSet to 0 to accept any fee rate."}, {"maxburnamount", RPCArg::Type::AMOUNT, RPCArg::Default{FormatMoney(0)}, "Reject transactions with provably unspendable outputs (e.g. 'datacarrier' outputs that use the OP_RETURN opcode) greater than the specified value, expressed in " + CURRENCY_UNIT + ".\n" "If burning funds through unspendable outputs is desired, increase this value.\n" @@ -175,7 +175,7 @@ static RPCHelpMan testmempoolaccept() }, {"maxfeerate", RPCArg::Type::AMOUNT, RPCArg::Default{FormatMoney(DEFAULT_MAX_RAW_TX_FEE_RATE.GetFeePerK())}, "Reject transactions whose fee rate is higher than the specified value, expressed in " + CURRENCY_UNIT + - "/kvB.\nFee rates larger than 1BTC/kvB are rejected.\nSet to 0 to accept any fee rate."}, + "/kvB.\nFee rates larger than 10QTUM/kvB are rejected.\nSet to 0 to accept any fee rate."}, }, RPCResult{ RPCResult::Type::ARR, "", "The result of the mempool acceptance test for each raw transaction in the input array.\n" diff --git a/src/rpc/util.cpp b/src/rpc/util.cpp index 5b24b06f80..afa0ff2028 100644 --- a/src/rpc/util.cpp +++ b/src/rpc/util.cpp @@ -92,7 +92,8 @@ CAmount AmountFromValue(const UniValue& value, int decimals) CFeeRate ParseFeeRate(const UniValue& json) { CAmount val{AmountFromValue(json)}; - if (val >= COIN) throw JSONRPCError(RPC_INVALID_PARAMETER, "Fee rates larger than or equal to 1BTC/kvB are not accepted"); + // MAX(val) / DEFAULT_MAX_RAW_TX_FEE_RATE = 10, preserve the proportion + if (val >= 10 * COIN) throw JSONRPCError(RPC_INVALID_PARAMETER, "Fee rates larger than or equal to 10QTUM/kvB are not accepted"); return CFeeRate{val}; }