aboutsummaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2012-02-29 10:14:18 -0500
committerLuke Dashjr <luke-jr+git@utopios.org>2012-03-02 13:04:39 -0500
commit3108aed0f210fe6cb698237c7eeac8715fb95e31 (patch)
treeb9a19d39e0408dd6500dde98b78b30c740259db0 /src/main.h
parentfeb3c15335d5279931c1e0f713400fb616459d0b (diff)
downloadbitcoin-3108aed0f210fe6cb698237c7eeac8715fb95e31.tar.xz
DoS fix for mapOrphanTransactions
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.h b/src/main.h
index 25cf079013..3e381b060b 100644
--- a/src/main.h
+++ b/src/main.h
@@ -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;