DoS fix for mapOrphanTransactions

This commit is contained in:
Gavin Andresen
2012-03-02 13:04:39 -05:00
committed by Luke Dashjr
parent feb3c15335
commit 3108aed0f2
2 changed files with 25 additions and 1 deletions
+1
View File
@@ -30,6 +30,7 @@ class CBlockIndex;
static const unsigned int MAX_BLOCK_SIZE = 1000000;
static const unsigned int MAX_BLOCK_SIZE_GEN = MAX_BLOCK_SIZE/2;
static const int MAX_BLOCK_SIGOPS = MAX_BLOCK_SIZE/50;
static const int MAX_ORPHAN_TRANSACTIONS = MAX_BLOCK_SIZE/100;
static const int64 COIN = 100000000;
static const int64 CENT = 1000000;
static const int64 MIN_TX_FEE = 50000;