mirror of
https://github.com/wownero/p2pool-wow.git
synced 2026-10-22 01:28:37 +02:00
Show file:line where panic() was called from
This commit is contained in:
+2
-2
@@ -226,7 +226,7 @@ std::vector<uint8_t> PoolBlock::serialize_mainchain_data_nolock(size_t* header_s
|
||||
#if POOL_BLOCK_DEBUG
|
||||
if (!nonce && !extra_nonce && !m_mainChainDataDebug.empty() && (data != m_mainChainDataDebug)) {
|
||||
LOGERR(1, "serialize_mainchain_data() has a bug, fix it!");
|
||||
panic();
|
||||
PANIC_STOP();
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -280,7 +280,7 @@ std::vector<uint8_t> PoolBlock::serialize_sidechain_data() const
|
||||
#if POOL_BLOCK_DEBUG
|
||||
if (!m_sideChainDataDebug.empty() && (data != m_sideChainDataDebug)) {
|
||||
LOGERR(1, "serialize_sidechain_data() has a bug, fix it!");
|
||||
panic();
|
||||
PANIC_STOP();
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user