Better cache cleanup

This commit is contained in:
SChernykh
2022-10-04 17:51:40 +02:00
parent eabf856dbd
commit 45674ef554
4 changed files with 142 additions and 49 deletions
+3 -1
View File
@@ -302,7 +302,9 @@ void p2pool::handle_miner_data(MinerData& data)
);
// Tx secret keys from all miners change every block, so cache can be cleared here
clear_crypto_cache();
if (m_sideChain->precalcFinished()) {
clear_crypto_cache();
}
if (!is_main_thread()) {
update_block_template_async();