diff options
| author | Alex Morcos <[email protected]> | 2016-11-11 13:29:13 -0500 |
|---|---|---|
| committer | Alex Morcos <[email protected]> | 2017-01-04 12:10:17 -0500 |
| commit | dc008c462f6df84dd444c9646f7ca64ee1c8c841 (patch) | |
| tree | d9ad056188457ee015bba64c346b01cd2b358b4f /src/validation.h | |
| parent | Pass pointers to existing CTxMemPoolEntries to fee estimation (diff) | |
| download | discoin-dc008c462f6df84dd444c9646f7ca64ee1c8c841.tar.xz discoin-dc008c462f6df84dd444c9646f7ca64ee1c8c841.zip | |
Add IsCurrentForFeeEstimatation
Make a more conservative notion of whether the node is caught up to the rest of the network and only count transactions as fee estimation data points if the node is caught up.
Diffstat (limited to 'src/validation.h')
| -rw-r--r-- | src/validation.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/validation.h b/src/validation.h index 981f65963..0f421d59e 100644 --- a/src/validation.h +++ b/src/validation.h @@ -130,6 +130,8 @@ static const int64_t BLOCK_DOWNLOAD_TIMEOUT_PER_PEER = 500000; static const unsigned int DEFAULT_LIMITFREERELAY = 0; static const bool DEFAULT_RELAYPRIORITY = true; static const int64_t DEFAULT_MAX_TIP_AGE = 24 * 60 * 60; +/** Maximum age of our tip for us to be considered current for fee estimation */ +static const int64_t MAX_FEE_ESTIMATION_TIP_AGE = 3 * 60 * 60; /** Default for -permitbaremultisig */ static const bool DEFAULT_PERMIT_BAREMULTISIG = true; |