Skip to content

Commit fa1ad20

Browse files
author
MarcoFalke
committed
doc: Add release notes for 15620
1 parent fa96d76 commit fa1ad20

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

doc/release-notes-15620.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Updated RPCs
2+
------------
3+
4+
* The -maxtxfee setting no longer has any effect on non-wallet RPCs.
5+
6+
The `sendrawtransaction` and `testmempoolaccept` RPC methods previously
7+
accepted an `allowhighfees` parameter to fail the mempool acceptance in case
8+
the transaction's fee would exceed the value of the command line argument
9+
`-maxtxfee`. To uncouple the RPCs from the global option, they now have a
10+
hardcoded default for the maximum transaction fee, that can be changed for
11+
both RPCs on a per-call basis with the `maxfeerate` parameter. The
12+
`allowhighfees` boolean option has been removed and replaced by the
13+
`maxfeerate` numeric option.

src/rpc/rawtransaction.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@
3939

4040
#include <univalue.h>
4141

42+
/** High fee for sendrawtransaction and testmempoolaccept.
43+
* By default, transaction with a fee higher than this will be rejected by the
44+
* RPCs. This can be overriden with the maxfeerate argument.
45+
*/
4246
constexpr static CAmount DEFAULT_MAX_RAW_TX_FEE{COIN / 10};
4347

4448
static void TxToJSON(const CTransaction& tx, const uint256 hashBlock, UniValue& entry)

0 commit comments

Comments
 (0)