diff options
| author | Sjors Provoost <[email protected]> | 2020-03-26 11:20:15 +0100 |
|---|---|---|
| committer | Sjors Provoost <[email protected]> | 2020-03-27 14:58:39 +0100 |
| commit | 1d05a9d80b1211b47af465ba6958b0ec5a8c33ab (patch) | |
| tree | 785b8c6c2c59c022b5ff7763e31f6a6bbe0b5ac4 /src/node/transaction.h | |
| parent | [util] GetFileSize (diff) | |
| download | discoin-1d05a9d80b1211b47af465ba6958b0ec5a8c33ab.tar.xz discoin-1d05a9d80b1211b47af465ba6958b0ec5a8c33ab.zip | |
Move DEFAULT_MAX_RAW_TX_FEE_RATE to node/transaction.h
So it can be used in the GUI.
Diffstat (limited to 'src/node/transaction.h')
| -rw-r--r-- | src/node/transaction.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/node/transaction.h b/src/node/transaction.h index a85dfb8ac..649625ded 100644 --- a/src/node/transaction.h +++ b/src/node/transaction.h @@ -6,11 +6,19 @@ #define BITCOIN_NODE_TRANSACTION_H #include <attributes.h> +#include <policy/feerate.h> #include <primitives/transaction.h> #include <util/error.h> struct NodeContext; +/** Maximum fee rate for sendrawtransaction and testmempoolaccept RPC calls. + * Also used by the GUI when broadcasting a completed PSBT. + * By default, a transaction with a fee rate higher than this will be rejected + * by these RPCs and the GUI. This can be overridden with the maxfeerate argument. + */ +static const CFeeRate DEFAULT_MAX_RAW_TX_FEE_RATE{COIN / 10}; + /** * Submit a transaction to the mempool and (optionally) relay it to all P2P peers. * |