mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-05 14:06:27 -05:00
refactor: Move DEFAULT_ANCESTOR_LIMIT to policy/policy.h
This commit is contained in:
parent
8e7eeb5971
commit
da8d304960
2 changed files with 3 additions and 2 deletions
|
@ -57,6 +57,8 @@ static const unsigned int MAX_STANDARD_SCRIPTSIG_SIZE = 1650;
|
|||
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;
|
||||
/** Default for -limitancestorcount, max number of in-mempool ancestors */
|
||||
static constexpr unsigned int DEFAULT_ANCESTOR_LIMIT{25};
|
||||
/**
|
||||
* Standard script verification flags that standard transactions will comply
|
||||
* with. However scripts violating these flags may still be present in valid
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#include <node/blockstorage.h>
|
||||
#include <policy/feerate.h>
|
||||
#include <policy/packages.h>
|
||||
#include <policy/policy.h>
|
||||
#include <script/script_error.h>
|
||||
#include <sync.h>
|
||||
#include <txdb.h>
|
||||
|
@ -58,8 +59,6 @@ namespace Consensus {
|
|||
struct Params;
|
||||
} // namespace Consensus
|
||||
|
||||
/** Default for -limitancestorcount, max number of in-mempool ancestors */
|
||||
static const unsigned int DEFAULT_ANCESTOR_LIMIT = 25;
|
||||
/** Default for -limitancestorsize, maximum kilobytes of tx + all in-mempool ancestors */
|
||||
static const unsigned int DEFAULT_ANCESTOR_SIZE_LIMIT = 101;
|
||||
/** Default for -limitdescendantcount, max number of in-mempool descendants */
|
||||
|
|
Loading…
Add table
Reference in a new issue