Skip to content

Commit faad05c

Browse files
author
MarcoFalke
committed
Crash debug builds when mempool ConsensusScriptChecks fails
1 parent 064c729 commit faad05c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/validation.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -942,8 +942,8 @@ bool MemPoolAccept::ConsensusScriptChecks(const ATMPArgs& args, Workspace& ws)
942942
unsigned int currentBlockScriptVerifyFlags = GetBlockScriptFlags(m_active_chainstate.m_chain.Tip(), chainparams.GetConsensus());
943943
if (!CheckInputsFromMempoolAndCache(tx, state, m_view, m_pool, currentBlockScriptVerifyFlags,
944944
ws.m_precomputed_txdata, m_active_chainstate.CoinsTip())) {
945-
return error("%s: BUG! PLEASE REPORT THIS! CheckInputScripts failed against latest-block but not STANDARD flags %s, %s",
946-
__func__, hash.ToString(), state.ToString());
945+
LogPrintf("BUG! PLEASE REPORT THIS! CheckInputScripts failed against latest-block but not STANDARD flags %s, %s\n", hash.ToString(), state.ToString());
946+
return Assume(false);
947947
}
948948

949949
return true;

0 commit comments

Comments
 (0)