aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_config.h
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-02-16 14:21:50 +0100
committerRiccardo Spagni <ric@spagni.net>2018-02-16 14:21:50 +0100
commit079eea7b702ff870054ad365aa7157372c63d324 (patch)
treeb6ed18deea82ff2a9bca197137ded8f1fb681716 /src/cryptonote_config.h
parentMerge pull request #3200 (diff)
parenttx_pool: add a max pool size, settable with --max-txpool-size (diff)
downloadmonero-079eea7b702ff870054ad365aa7157372c63d324.tar.xz
Merge pull request #3205
bc61ae69 tx_pool: add a max pool size, settable with --max-txpool-size (moneromooo-monero) 3b4e6b35 txpool: increase unmined tx expiry to three days (moneromooo-monero)
Diffstat (limited to 'src/cryptonote_config.h')
-rw-r--r--src/cryptonote_config.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cryptonote_config.h b/src/cryptonote_config.h
index 0ece65028..f9460e7db 100644
--- a/src/cryptonote_config.h
+++ b/src/cryptonote_config.h
@@ -92,7 +92,7 @@
#define BLOCKS_SYNCHRONIZING_DEFAULT_COUNT_PRE_V4 100 //by default, blocks count in blocks downloading
#define BLOCKS_SYNCHRONIZING_DEFAULT_COUNT 20 //by default, blocks count in blocks downloading
-#define CRYPTONOTE_MEMPOOL_TX_LIVETIME 86400 //seconds, one day
+#define CRYPTONOTE_MEMPOOL_TX_LIVETIME (86400*3) //seconds, three days
#define CRYPTONOTE_MEMPOOL_TX_FROM_ALT_BLOCK_LIVETIME 604800 //seconds, one week
#define COMMAND_RPC_GET_BLOCKS_FAST_MAX_COUNT 1000
@@ -138,6 +138,7 @@
#define HASH_OF_HASHES_STEP 256
+#define DEFAULT_TXPOOL_MAX_SIZE 648000000ull // 3 days at 300000, in bytes
// New constants are intended to go here
namespace config