SideChain: added some extra checks, removed const_cast

This commit is contained in:
SChernykh
2025-10-01 18:05:26 +02:00
parent e1da9ff4d3
commit 6b4c39f4c9
4 changed files with 17 additions and 16 deletions
+4 -1
View File
@@ -271,7 +271,10 @@ void BlockTemplate::update(const MinerData& data, const Mempool& mempool, const
m_poolBlockTemplate->m_minerWallet = miner_wallet;
m_sidechain->fill_sidechain_data(*m_poolBlockTemplate, m_shares);
if (!m_sidechain->fill_sidechain_data(*m_poolBlockTemplate, m_shares)) {
use_old_template();
return;
}
// Pre-calculate outputs to speed up miner tx generation
if (!m_shares.empty()) {