aboutsummaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2014-02-08 10:49:49 -0500
committerGavin Andresen <gavinandresen@gmail.com>2014-02-08 10:49:49 -0500
commit95e66247ebaac88dadd081f850ebf86c71831e61 (patch)
tree7fdbefb3bfbc5c967e33c6a982db67fb656570ce /src/main.h
parentf8bb2e9dd265332b956c09768796e6f4caeb4585 (diff)
parentbbde1e99c893924dbef135f42c14f4df9828c6e5 (diff)
Merge pull request #3609 from sipa/limitorphanblocks
Limit the number of orphan blocks in memory
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.h b/src/main.h
index bbf6fce48b..05210e5164 100644
--- a/src/main.h
+++ b/src/main.h
@@ -45,6 +45,8 @@ static const unsigned int MAX_STANDARD_TX_SIZE = 100000;
static const unsigned int MAX_BLOCK_SIGOPS = MAX_BLOCK_SIZE/50;
/** The maximum number of orphan transactions kept in memory */
static const unsigned int MAX_ORPHAN_TRANSACTIONS = MAX_BLOCK_SIZE/100;
+/** The maximum number of orphan blocks kept in memory */
+static const unsigned int MAX_ORPHAN_BLOCKS = 750;
/** 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) */