diff options
author | Gavin Andresen <gavinandresen@gmail.com> | 2012-02-29 10:14:18 -0500 |
---|---|---|
committer | Gavin Andresen <gavinandresen@gmail.com> | 2012-02-29 11:46:46 -0500 |
commit | 142e604184e3ab6dcbe02cebcbe08e5623182b81 (patch) | |
tree | 0906a390af4ec3314983a62e9fa2ae66dd348ab0 /src/main.h | |
parent | 722d9387be4b267b689d7b7d78daeb7157bd12d8 (diff) |
DoS fix for mapOrphanTransactionsv0.6.0rc2
Diffstat (limited to 'src/main.h')
-rw-r--r-- | src/main.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.h b/src/main.h index ac6d624e40..25750dae46 100644 --- a/src/main.h +++ b/src/main.h @@ -33,6 +33,7 @@ extern const std::string CLIENT_NAME; 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; |