File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,8 @@ static const unsigned int MAX_STANDARD_SCRIPTSIG_SIZE = 1650;
57
57
static const unsigned int DUST_RELAY_TX_FEE = 3000 ;
58
58
/* * Default for -minrelaytxfee, minimum relay fee for transactions */
59
59
static const unsigned int DEFAULT_MIN_RELAY_TX_FEE = 1000 ;
60
+ /* * Default for -limitancestorcount, max number of in-mempool ancestors */
61
+ static constexpr unsigned int DEFAULT_ANCESTOR_LIMIT{25 };
60
62
/* *
61
63
* Standard script verification flags that standard transactions will comply
62
64
* with. However scripts violating these flags may still be present in valid
Original file line number Diff line number Diff line change 21
21
#include < node/blockstorage.h>
22
22
#include < policy/feerate.h>
23
23
#include < policy/packages.h>
24
+ #include < policy/policy.h>
24
25
#include < script/script_error.h>
25
26
#include < sync.h>
26
27
#include < txdb.h>
@@ -58,8 +59,6 @@ namespace Consensus {
58
59
struct Params ;
59
60
} // namespace Consensus
60
61
61
- /* * Default for -limitancestorcount, max number of in-mempool ancestors */
62
- static const unsigned int DEFAULT_ANCESTOR_LIMIT = 25 ;
63
62
/* * Default for -limitancestorsize, maximum kilobytes of tx + all in-mempool ancestors */
64
63
static const unsigned int DEFAULT_ANCESTOR_SIZE_LIMIT = 101 ;
65
64
/* * Default for -limitdescendantcount, max number of in-mempool descendants */
You can’t perform that action at this time.
0 commit comments