mirror of
https://github.com/monero-project/monero.git
synced 2026-08-02 00:47:53 -07:00
Removed on_idle() calls to Blockchain::store_blockchain() for lmdb.
Added option to cache tx-input verification results.
This commit is contained in:
parent
2e293a563e
commit
94ea3e8ed2
@@ -511,8 +511,8 @@ namespace cryptonote
|
||||
// Can not exceed maximum block size
|
||||
if (max_total_size < total_size + tx_it->second.blob_size)
|
||||
{
|
||||
sorted_it++;
|
||||
continue;
|
||||
sorted_it++;
|
||||
continue;
|
||||
}
|
||||
|
||||
// If adding this tx will make the block size
|
||||
@@ -522,8 +522,8 @@ namespace cryptonote
|
||||
// to propagate at 60s block times.
|
||||
if ( (total_size + tx_it->second.blob_size) > CRYPTONOTE_GETBLOCKTEMPLATE_MAX_BLOCK_SIZE )
|
||||
{
|
||||
sorted_it++;
|
||||
continue;
|
||||
sorted_it++;
|
||||
continue;
|
||||
}
|
||||
|
||||
// If we've exceeded the penalty free size,
|
||||
@@ -536,8 +536,8 @@ namespace cryptonote
|
||||
// missing key images
|
||||
if (!is_transaction_ready_to_go(tx_it->second) || have_key_images(k_images, tx_it->second.tx))
|
||||
{
|
||||
sorted_it++;
|
||||
continue;
|
||||
sorted_it++;
|
||||
continue;
|
||||
}
|
||||
|
||||
bl.tx_hashes.push_back(tx_it->first);
|
||||
|
||||
Reference in New Issue
Block a user