diff options
author | MacroFake <falke.marco@gmail.com> | 2022-05-31 13:30:23 +0200 |
---|---|---|
committer | MacroFake <falke.marco@gmail.com> | 2022-05-31 15:05:57 +0200 |
commit | fa4068b4e2192f168bb120624eca5735f0dadf6f (patch) | |
tree | deae23440db335efc3a7a335c16d22935e9dd946 /src/policy/policy.h | |
parent | 5f65afff9c4c735d607a69fc3d18b4ecadbf3ba9 (diff) |
Move minRelayTxFee to policy/settings
Also fix includes using iwyu
Diffstat (limited to 'src/policy/policy.h')
-rw-r--r-- | src/policy/policy.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/policy/policy.h b/src/policy/policy.h index 89f6e72618..94f9623b8a 100644 --- a/src/policy/policy.h +++ b/src/policy/policy.h @@ -6,15 +6,18 @@ #ifndef BITCOIN_POLICY_POLICY_H #define BITCOIN_POLICY_POLICY_H +#include <consensus/amount.h> #include <consensus/consensus.h> -#include <policy/feerate.h> +#include <primitives/transaction.h> #include <script/interpreter.h> #include <script/standard.h> +#include <cstdint> #include <string> class CCoinsViewCache; -class CTxOut; +class CFeeRate; +class CScript; /** Default for -blockmaxweight, which controls the range of block weights the mining code will create **/ static const unsigned int DEFAULT_BLOCK_MAX_WEIGHT = MAX_BLOCK_WEIGHT - 4000; @@ -52,6 +55,8 @@ static const unsigned int MAX_STANDARD_SCRIPTSIG_SIZE = 1650; * only increase the dust limit after prior releases were already not creating * outputs below the new threshold */ static const unsigned int DUST_RELAY_TX_FEE = 3000; +/** Default for -minrelaytxfee, minimum relay fee for transactions */ +static const unsigned int DEFAULT_MIN_RELAY_TX_FEE = 1000; /** * Standard script verification flags that standard transactions will comply * with. However scripts violating these flags may still be present in valid |