Skip to content

Commit 05fc5fd

Browse files
committed
refactor: Move DEFAULT_ANCESTOR_SIZE_LIMIT to policy/policy.h
1 parent da8d304 commit 05fc5fd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/policy/policy.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ static const unsigned int DUST_RELAY_TX_FEE = 3000;
5959
static const unsigned int DEFAULT_MIN_RELAY_TX_FEE = 1000;
6060
/** Default for -limitancestorcount, max number of in-mempool ancestors */
6161
static constexpr unsigned int DEFAULT_ANCESTOR_LIMIT{25};
62+
/** Default for -limitancestorsize, maximum kilobytes of tx + all in-mempool ancestors */
63+
static constexpr unsigned int DEFAULT_ANCESTOR_SIZE_LIMIT{101};
6264
/**
6365
* Standard script verification flags that standard transactions will comply
6466
* with. However scripts violating these flags may still be present in valid

src/validation.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@ namespace Consensus {
5959
struct Params;
6060
} // namespace Consensus
6161

62-
/** Default for -limitancestorsize, maximum kilobytes of tx + all in-mempool ancestors */
63-
static const unsigned int DEFAULT_ANCESTOR_SIZE_LIMIT = 101;
6462
/** Default for -limitdescendantcount, max number of in-mempool descendants */
6563
static const unsigned int DEFAULT_DESCENDANT_LIMIT = 25;
6664
/** Default for -limitdescendantsize, maximum kilobytes of in-mempool descendants */

0 commit comments

Comments
 (0)