Skip to content

Commit 9c94f3b

Browse files
committed
refactor: move EXTRA_DESCENDANT_TX_SIZE_LIMIT to policy/policy.h
1 parent 39c6036 commit 9c94f3b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/policy/policy.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@ static constexpr unsigned int DEFAULT_ANCESTOR_SIZE_LIMIT{101};
6565
static constexpr unsigned int DEFAULT_DESCENDANT_LIMIT{25};
6666
/** Default for -limitdescendantsize, maximum kilobytes of in-mempool descendants */
6767
static constexpr unsigned int DEFAULT_DESCENDANT_SIZE_LIMIT{101};
68+
/**
69+
* An extra transaction can be added to a package, as long as it only has one
70+
* ancestor and is no larger than this. Not really any reason to make this
71+
* configurable as it doesn't materially change DoS parameters.
72+
*/
73+
static constexpr unsigned int EXTRA_DESCENDANT_TX_SIZE_LIMIT{10000};
6874
/**
6975
* Standard script verification flags that standard transactions will comply
7076
* with. However scripts violating these flags may still be present in valid

src/validation.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,6 @@ using node::UnlinkPrunedFiles;
8181
#define MICRO 0.000001
8282
#define MILLI 0.001
8383

84-
/**
85-
* An extra transaction can be added to a package, as long as it only has one
86-
* ancestor and is no larger than this. Not really any reason to make this
87-
* configurable as it doesn't materially change DoS parameters.
88-
*/
89-
static const unsigned int EXTRA_DESCENDANT_TX_SIZE_LIMIT = 10000;
9084
/** Maximum kilobytes for transactions to store for processing during reorg */
9185
static const unsigned int MAX_DISCONNECTED_TX_POOL_SIZE = 20000;
9286
/** Time to wait between writing blocks/block index to disk. */

0 commit comments

Comments
 (0)