diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2015-10-02 14:43:30 -0700 |
---|---|---|
committer | Matt Corallo <git@bluematt.me> | 2015-10-13 00:44:03 -0700 |
commit | 49b6fd5663dfe081d127cd1eb11407c4d3eaf93d (patch) | |
tree | 30caec98dd3dc4fae4aef494ff04b0df81778ca4 /src/main.h | |
parent | 78b82f4a16d8aad15ef397b1a1cd075b2efc8c16 (diff) |
Add Mempool Expire function to remove old transactions
(note the 9x multiplier on (void*)'s for CTxMemPool::DynamicMemoryUsage
was accidentally introduced in 5add7a7 but should have waited for this
commit which adds the extra index)
Diffstat (limited to 'src/main.h')
-rw-r--r-- | src/main.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.h b/src/main.h index a6001eed8f..ec7cc2fdc6 100644 --- a/src/main.h +++ b/src/main.h @@ -51,6 +51,8 @@ static const unsigned int DEFAULT_ANCESTOR_SIZE_LIMIT = 900; static const unsigned int DEFAULT_DESCENDANT_LIMIT = 1000; /** Default for -limitdescendantsize, maximum kilobytes of in-mempool descendants */ static const unsigned int DEFAULT_DESCENDANT_SIZE_LIMIT = 2500; +/** Default for -mempoolexpiry, expiration time for mempool transactions in hours */ +static const unsigned int DEFAULT_MEMPOOL_EXPIRY = 72; /** The maximum size of a blk?????.dat file (since 0.8) */ static const unsigned int MAX_BLOCKFILE_SIZE = 0x8000000; // 128 MiB /** The pre-allocation chunk size for blk?????.dat files (since 0.8) */ |