From c6c307b3f71ffcc5e575a6b370ea7f6802e499da Mon Sep 17 00:00:00 2001 From: Kittywhiskers Van Gogh <63189531+kittywhiskers@users.noreply.github.com> Date: Sun, 12 Dec 2021 11:57:44 +0530 Subject: [PATCH 01/17] merge bitcoin#13541: sendrawtransaction maxfeerate --- src/rpc/client.cpp | 2 + src/rpc/rawtransaction.cpp | 48 +++++++++++++++++------ test/functional/feature_addressindex.py | 14 +++---- test/functional/feature_cltv.py | 2 +- test/functional/feature_dersig.py | 2 +- test/functional/feature_fee_estimation.py | 4 +- test/functional/feature_nulldummy.py | 10 ++--- test/functional/feature_spentindex.py | 4 +- test/functional/feature_txindex.py | 2 +- test/functional/mempool_accept.py | 16 ++++---- test/functional/mempool_resurrect.py | 4 +- test/functional/rpc_rawtransaction.py | 37 ++++++++++++----- test/functional/test_framework/util.py | 4 +- test/functional/wallet_basic.py | 4 +- 14 files changed, 98 insertions(+), 55 deletions(-) diff --git a/src/rpc/client.cpp b/src/rpc/client.cpp index af5bea8bee..31e704891c 100644 --- a/src/rpc/client.cpp +++ b/src/rpc/client.cpp @@ -111,10 +111,12 @@ static const CRPCConvertParam vRPCConvertParams[] = { "signrawtransactionwithkey", 2, "prevtxs" }, { "signrawtransactionwithwallet", 1, "prevtxs" }, { "sendrawtransaction", 1, "allowhighfees" }, + { "sendrawtransaction", 1, "maxfeerate" }, { "sendrawtransaction", 2, "instantsend" }, { "sendrawtransaction", 3, "bypasslimits" }, { "testmempoolaccept", 0, "rawtxs" }, { "testmempoolaccept", 1, "allowhighfees" }, + { "testmempoolaccept", 1, "maxfeerate" }, { "combinerawtransaction", 0, "txs" }, { "fundrawtransaction", 1, "options" }, { "walletcreatefundedpsbt", 0, "inputs" }, diff --git a/src/rpc/rawtransaction.cpp b/src/rpc/rawtransaction.cpp index 55ab4845d5..6184d73aae 100644 --- a/src/rpc/rawtransaction.cpp +++ b/src/rpc/rawtransaction.cpp @@ -30,6 +30,7 @@ #include