aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/tx_pool.cpp
diff options
context:
space:
mode:
authorZachary Michaels <mikezackles@gmail.com>2014-07-17 11:14:13 -0400
committerZachary Michaels <mikezackles@gmail.com>2014-07-17 16:56:31 -0400
commit232e23e90f9d959d55114150ea120d3da0e76b22 (patch)
tree7e0986f5113bd2c0fbc9c055f49479057145d857 /src/cryptonote_core/tx_pool.cpp
parentUse print_money in log (diff)
downloadmonero-232e23e90f9d959d55114150ea120d3da0e76b22.tar.xz
Decrease max block size from 200% median to 130%
Diffstat (limited to 'src/cryptonote_core/tx_pool.cpp')
-rw-r--r--src/cryptonote_core/tx_pool.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cryptonote_core/tx_pool.cpp b/src/cryptonote_core/tx_pool.cpp
index 0c13a508c..406df8bd7 100644
--- a/src/cryptonote_core/tx_pool.cpp
+++ b/src/cryptonote_core/tx_pool.cpp
@@ -390,7 +390,9 @@ namespace cryptonote
total_size = 0;
fee = 0;
- size_t max_total_size = 2 * median_size - CRYPTONOTE_COINBASE_BLOB_RESERVED_SIZE; // Max block size
+ // Maximum block size is 130% of the median block size. This gives a
+ // little extra headroom for the max size transaction.
+ size_t max_total_size = (130 * median_size) / 100 - CRYPTONOTE_COINBASE_BLOB_RESERVED_SIZE;
std::unordered_set<crypto::key_image> k_images;
// Tx size limit as in wallet2.h