File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 6
6
#define BITCOIN_NODE_TRANSACTION_H
7
7
8
8
#include < attributes.h>
9
+ #include < policy/feerate.h>
9
10
#include < primitives/transaction.h>
10
11
#include < util/error.h>
11
12
12
13
struct NodeContext ;
13
14
15
+ /* * Maximum fee rate for sendrawtransaction and testmempoolaccept RPC calls.
16
+ * Also used by the GUI when broadcasting a completed PSBT.
17
+ * By default, a transaction with a fee rate higher than this will be rejected
18
+ * by these RPCs and the GUI. This can be overridden with the maxfeerate argument.
19
+ */
20
+ static const CFeeRate DEFAULT_MAX_RAW_TX_FEE_RATE{COIN / 10 };
21
+
14
22
/* *
15
23
* Submit a transaction to the mempool and (optionally) relay it to all P2P peers.
16
24
*
Original file line number Diff line number Diff line change 39
39
40
40
#include < univalue.h>
41
41
42
- /* * Maximum fee rate for sendrawtransaction and testmempoolaccept.
43
- * By default, a transaction with a fee rate higher than this will be rejected
44
- * by the RPCs. This can be overridden with the maxfeerate argument.
45
- */
46
- static const CFeeRate DEFAULT_MAX_RAW_TX_FEE_RATE{COIN / 10 };
47
-
48
42
static void TxToJSON (const CTransaction& tx, const uint256 hashBlock, UniValue& entry)
49
43
{
50
44
// Call into TxToUniv() in bitcoin-common to decode the transaction hex.
You can’t perform that action at this time.
0 commit comments