aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/blockchain.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-01-06 20:34:37 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-01-07 12:36:22 +0000
commit1607cb7e0c5cc5e1400766f595e723531a97cb7b (patch)
tree38498d6406f823cb0f34bfc1b5b8ef12bf6dcc17 /src/cryptonote_core/blockchain.cpp
parent9731b4e54f3241869faa614e8c54c69778e51b6d (diff)
downloadmonzero-core-1607cb7e0c5cc5e1400766f595e723531a97cb7b.tar.gz
monzero-core-1607cb7e0c5cc5e1400766f595e723531a97cb7b.tar.xz
monzero-core-1607cb7e0c5cc5e1400766f595e723531a97cb7b.zip
tx_pool: better block template filling algorithm
Continue filling until we reach the block size limit, or the resulting coinbase decreases. Also remove old sanity check on block size, which is now not wanted anymore.
Diffstat (limited to 'src/cryptonote_core/blockchain.cpp')
-rw-r--r--src/cryptonote_core/blockchain.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp
index 42279184a..0fad742f9 100644
--- a/src/cryptonote_core/blockchain.cpp
+++ b/src/cryptonote_core/blockchain.cpp
@@ -1084,7 +1084,7 @@ bool Blockchain::create_block_template(block& b, const account_public_address& m
size_t txs_size;
uint64_t fee;
- if (!m_tx_pool.fill_block_template(b, median_size, already_generated_coins, txs_size, fee))
+ if (!m_tx_pool.fill_block_template(b, median_size, already_generated_coins, txs_size, fee, m_hardfork->get_current_version()))
{
return false;
}