Fix merkle tree calculation for mempool transactions
- Fixed m_transactionHashes to preserve mempool txs across template updates - Changed merkle calculation to use merkle_hash() with all transactions - Removed hardcoded 2-transaction merkle assumption for HF10+ - Synchronized m_poolBlockTemplate->m_transactions with m_transactionHashes - Commented out premature m_transactionHashes.clear() - Updated monerod references to salviumd - Enhanced difficulty debug logging (lo/hi components)
This commit is contained in:
+1
-1
@@ -650,7 +650,7 @@ bool SideChain::add_external_block(PoolBlock& block, std::vector<hash>& missing_
|
||||
}
|
||||
}
|
||||
|
||||
LOGINFO(0, "DEBUG PoW check: sidechainHeight=" << block.m_sidechainHeight << " m_difficulty=" << block.m_difficulty << " m_powHash=" << block.m_powHash);
|
||||
LOGINFO(0, "DEBUG PoW check: sidechainHeight=" << block.m_sidechainHeight << " m_difficulty.lo=" << block.m_difficulty.lo << " m_difficulty.hi=" << block.m_difficulty.hi << " m_powHash=" << block.m_powHash);
|
||||
|
||||
if (!block.m_difficulty.check_pow(block.m_powHash)) {
|
||||
LOGWARN(3,
|
||||
|
||||
Reference in New Issue
Block a user