forked from Snipa22/nodejs-pool
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmonero_daemon.patch
More file actions
13 lines (12 loc) · 780 Bytes
/
Copy pathmonero_daemon.patch
File metadata and controls
13 lines (12 loc) · 780 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/cryptonote_core/tx_pool.cpp b/src/cryptonote_core/tx_pool.cpp
index 4b3fa787..a2340139 100644
--- a/src/cryptonote_core/tx_pool.cpp
+++ b/src/cryptonote_core/tx_pool.cpp
@@ -863,7 +863,7 @@ namespace cryptonote
LockedTXN lock(m_blockchain);
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)
{
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));