mining-pool/deployment/monero_daemon.patch

14 lines
780 B
Diff
Raw Normal View History

2017-02-28 07:18:39 -08:00
diff --git a/src/cryptonote_core/tx_pool.cpp b/src/cryptonote_core/tx_pool.cpp
2017-09-09 02:39:13 -07:00
index 4b3fa787..a2340139 100644
2017-02-28 07:18:39 -08:00
--- a/src/cryptonote_core/tx_pool.cpp
+++ b/src/cryptonote_core/tx_pool.cpp
2017-09-09 02:39:13 -07:00
@@ -863,7 +863,7 @@ namespace cryptonote
LockedTXN lock(m_blockchain);
2017-09-15 19:01:11 -07:00
2017-02-28 07:18:39 -08:00
auto sorted_it = m_txs_by_fee_and_receive_time.begin();
- while (sorted_it != m_txs_by_fee_and_receive_time.end())
+ while (sorted_it != m_txs_by_fee_and_receive_time.end() && bl.tx_hashes.size() <= 120)
2017-02-28 07:18:39 -08:00
{
2017-09-09 02:39:13 -07:00
txpool_tx_meta_t meta = m_blockchain.get_txpool_tx_meta(sorted_it->second);
LOG_PRINT_L2("Considering " << sorted_it->second << ", size " << meta.blob_size << ", current block size " << total_size << "/" << max_total_size << ", current coinbase " << print_money(best_coinbase));