We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3447a19 commit 1912743Copy full SHA for 1912743
src/node/sv2_template_provider.cpp
@@ -365,6 +365,11 @@ void Sv2TemplateProvider::PruneBlockTemplateCache()
365
// If the blocks prevout is not the tip's prevout, delete it.
366
uint256 prev_hash = m_best_prev_hash;
367
std::erase_if(m_block_template_cache, [prev_hash] (const auto& kv) {
368
+ // TODO: this shouldn't happen, but it does.
369
+ // Investigate after the mining interface is merged / stable.
370
+ // When trying testnet4 mining, using only the pool role,
371
+ // the node would crash immediately after finding a block.
372
+ if (!kv.second) return true;
373
if (kv.second->getBlockHeader().hashPrevBlock != prev_hash) {
374
return true;
375
}
0 commit comments