changeset 23717:5f0eb4657d7a

Orphan Cache default change and DB cache default change Orphan Cache default to 5000 transactions. Maximum orphan tx size is 5000 bytes, therefore maximum cache size is now 25MB Up the default db cache from 100MB to 300MB
author Peter Tschipper <peter.tschipper@gmailcom>
date Fri, 04 Mar 2016 16:39:28 -0800
parents c91947e22798
children ca7ade6993ea
files src/main.h src/txdb.h
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/main.h	Thu Mar 03 05:48:50 2016 -0800
+++ b/src/main.h	Fri Mar 04 16:39:28 2016 -0800
@@ -51,7 +51,7 @@
 static const unsigned int DEFAULT_MIN_RELAY_TX_FEE = 1000;
 
 /** Default for -maxorphantx, maximum number of orphan transactions kept in memory */
-static const unsigned int DEFAULT_MAX_ORPHAN_TRANSACTIONS = 100;
+static const unsigned int DEFAULT_MAX_ORPHAN_TRANSACTIONS = 5000;  // BU Xtreme Thinblocks change to 5000 or 25MB (5000 x 5000KB max orphan size)
 /** Default for -limitancestorcount, max number of in-mempool ancestors */
 static const unsigned int DEFAULT_ANCESTOR_LIMIT = 25;
 /** Default for -limitancestorsize, maximum kilobytes of tx + all in-mempool ancestors */
--- a/src/txdb.h	Thu Mar 03 05:48:50 2016 -0800
+++ b/src/txdb.h	Fri Mar 04 16:39:28 2016 -0800
@@ -20,7 +20,7 @@
 class uint256;
 
 //! -dbcache default (MiB)
-static const int64_t nDefaultDbCache = 100;
+static const int64_t nDefaultDbCache = 300; // BU Xtreme Thinblocks bump to support a larger ophan cache
 //! max. -dbcache in (MiB)
 static const int64_t nMaxDbCache = sizeof(void*) > 4 ? 16384 : 1024;
 //! min. -dbcache in (MiB)