Add NODE_NETWORK_LIMITED flags and min block amount constants

This commit is contained in:
Jonas Schnelli
2017-05-10 09:35:36 +02:00
parent 91eeaa0335
commit 7caba38568
2 changed files with 8 additions and 3 deletions

View File

@ -203,6 +203,8 @@ extern bool fPruneMode;
extern uint64_t nPruneTarget;
/** Block files containing a block-height within MIN_BLOCKS_TO_KEEP of chainActive.Tip() will not be pruned. */
static const unsigned int MIN_BLOCKS_TO_KEEP = 288;
/** Minimum blocks required to signal NODE_NETWORK_LIMITED */
static const unsigned int NODE_NETWORK_LIMITED_MIN_BLOCKS = 288;
static const signed int DEFAULT_CHECKBLOCKS = 6;
static const unsigned int DEFAULT_CHECKLEVEL = 3;