Reduced transaction time-to-include delay

Based on data from https://rucknium.me/posts/monero-pool-transaction-delay/
> 95 percent all transactions arrived at all five Monero nodes within a five-second interval.
This commit is contained in:
SChernykh
2023-01-20 10:43:18 +01:00
parent 85d177d394
commit 595196b5ec
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -1162,9 +1162,9 @@ void P2PServer::check_block_template()
return;
}
// Force update block template every 30 seconds after the initial sync is done
if (seconds_since_epoch() >= m_pool->block_template().last_updated() + 30) {
LOGINFO(4, "block template is 30 seconds old, updating it");
// Force update block template every 20 seconds after the initial sync is done
if (seconds_since_epoch() >= m_pool->block_template().last_updated() + 20) {
LOGINFO(4, "block template is 20 seconds old, updating it");
m_pool->update_block_template_async();
}
}