mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-05-30 09:40:16 +02:00
refactor: move EXTRA_DESCENDANT_TX_SIZE_LIMIT to policy/policy.h
This commit is contained in:
parent
39c6036253
commit
9c94f3b3a7
@ -65,6 +65,12 @@ static constexpr unsigned int DEFAULT_ANCESTOR_SIZE_LIMIT{101};
|
|||||||
static constexpr unsigned int DEFAULT_DESCENDANT_LIMIT{25};
|
static constexpr unsigned int DEFAULT_DESCENDANT_LIMIT{25};
|
||||||
/** Default for -limitdescendantsize, maximum kilobytes of in-mempool descendants */
|
/** Default for -limitdescendantsize, maximum kilobytes of in-mempool descendants */
|
||||||
static constexpr unsigned int DEFAULT_DESCENDANT_SIZE_LIMIT{101};
|
static constexpr unsigned int DEFAULT_DESCENDANT_SIZE_LIMIT{101};
|
||||||
|
/**
|
||||||
|
* An extra transaction can be added to a package, as long as it only has one
|
||||||
|
* ancestor and is no larger than this. Not really any reason to make this
|
||||||
|
* configurable as it doesn't materially change DoS parameters.
|
||||||
|
*/
|
||||||
|
static constexpr unsigned int EXTRA_DESCENDANT_TX_SIZE_LIMIT{10000};
|
||||||
/**
|
/**
|
||||||
* Standard script verification flags that standard transactions will comply
|
* Standard script verification flags that standard transactions will comply
|
||||||
* with. However scripts violating these flags may still be present in valid
|
* with. However scripts violating these flags may still be present in valid
|
||||||
|
@ -81,12 +81,6 @@ using node::UnlinkPrunedFiles;
|
|||||||
#define MICRO 0.000001
|
#define MICRO 0.000001
|
||||||
#define MILLI 0.001
|
#define MILLI 0.001
|
||||||
|
|
||||||
/**
|
|
||||||
* An extra transaction can be added to a package, as long as it only has one
|
|
||||||
* ancestor and is no larger than this. Not really any reason to make this
|
|
||||||
* configurable as it doesn't materially change DoS parameters.
|
|
||||||
*/
|
|
||||||
static const unsigned int EXTRA_DESCENDANT_TX_SIZE_LIMIT = 10000;
|
|
||||||
/** Maximum kilobytes for transactions to store for processing during reorg */
|
/** Maximum kilobytes for transactions to store for processing during reorg */
|
||||||
static const unsigned int MAX_DISCONNECTED_TX_POOL_SIZE = 20000;
|
static const unsigned int MAX_DISCONNECTED_TX_POOL_SIZE = 20000;
|
||||||
/** Time to wait between writing blocks/block index to disk. */
|
/** Time to wait between writing blocks/block index to disk. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user