Skip to content

Commit 250ad2d

Browse files
committed
validation: Make LimitMempoolSize public
1 parent 1248d0d commit 250ad2d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/validation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ bool CheckSequenceLocksAtTip(CBlockIndex* tip,
262262
// Returns the script flags which should be checked for a given block
263263
static unsigned int GetBlockScriptFlags(const CBlockIndex& block_index, const ChainstateManager& chainman);
264264

265-
static void LimitMempoolSize(CTxMemPool& pool, CCoinsViewCache& coins_cache)
265+
void LimitMempoolSize(CTxMemPool& pool, CCoinsViewCache& coins_cache)
266266
EXCLUSIVE_LOCKS_REQUIRED(::cs_main, pool.cs)
267267
{
268268
AssertLockHeld(::cs_main);

src/validation.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,8 @@ std::optional<LockPoints> CalculateLockPointsAtTip(
328328
bool CheckSequenceLocksAtTip(CBlockIndex* tip,
329329
const LockPoints& lock_points);
330330

331+
void LimitMempoolSize(CTxMemPool&, CCoinsViewCache&);
332+
331333
/**
332334
* Closure representing one script verification
333335
* Note that this stores references to the spending transaction

0 commit comments

Comments
 (0)