diff options
| author | Patrick Lodder <[email protected]> | 2021-01-27 13:20:27 +0100 |
|---|---|---|
| committer | Patrick Lodder <[email protected]> | 2021-01-27 13:20:27 +0100 |
| commit | d62033cb90dd2efc0dddc8dd5e92b510d9fbea51 (patch) | |
| tree | 5fc4d58242a8d9a20fd03aae1c0edf35b45b87f3 /src | |
| parent | Merge pull request #1661 from Vertian/1.14.3-dev-osx (diff) | |
| download | discoin-d62033cb90dd2efc0dddc8dd5e92b510d9fbea51.tar.xz discoin-d62033cb90dd2efc0dddc8dd5e92b510d9fbea51.zip | |
Default policy: reduce default mempool expiry time
Reduces DEFAULT_MEMPOOL_EXPIRY from 336 hours to 24 hours.
Motivation is that while blocks are empty, un-relayable tx are
stuck in mempools for a long time and effectively locking utxo
for 2 weeks until they can be respent, if no RBF opt-in was
performed (most wallet implementations do not do RBF opt-in.)
As the expectation is that block space will not be fully utilized
for the foreseeable future, and therefore, as long as this is the
case, no valid transaction should ever live in the mempool for
more than a couple of minutes.
This default setting can be overridden with the -mempoolexpiry
parameter by individual node operators to a value (expressed
in hours) that makes the most sense for the use cases the node
serves.
Diffstat (limited to 'src')
| -rw-r--r-- | src/validation.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/validation.h b/src/validation.h index fb4f3982e..1dd68b298 100644 --- a/src/validation.h +++ b/src/validation.h @@ -70,7 +70,7 @@ static const unsigned int DEFAULT_DESCENDANT_LIMIT = 25; /** Default for -limitdescendantsize, maximum kilobytes of in-mempool descendants */ static const unsigned int DEFAULT_DESCENDANT_SIZE_LIMIT = 101; /** Default for -mempoolexpiry, expiration time for mempool transactions in hours */ -static const unsigned int DEFAULT_MEMPOOL_EXPIRY = 336; +static const unsigned int DEFAULT_MEMPOOL_EXPIRY = 24; /** 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) */ |