aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2021-11-25 11:50:17 +0100
committerMarcoFalke <falke.marco@gmail.com>2021-11-25 11:45:50 +0100
commitfaad05c6d2ad1840c26f6fdea7d358bf9ba6efea (patch)
tree66fc26a64cd19b14e93c5eaa2da50c3a02bb29ee /src
parent064c729a964ab8d9df5edda18c8b4a9e075789e6 (diff)
Crash debug builds when mempool ConsensusScriptChecks fails
Diffstat (limited to 'src')
-rw-r--r--src/validation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/validation.cpp b/src/validation.cpp
index 881b0abc74..52b06cecee 100644
--- a/src/validation.cpp
+++ b/src/validation.cpp
@@ -942,8 +942,8 @@ bool MemPoolAccept::ConsensusScriptChecks(const ATMPArgs& args, Workspace& ws)
unsigned int currentBlockScriptVerifyFlags = GetBlockScriptFlags(m_active_chainstate.m_chain.Tip(), chainparams.GetConsensus());
if (!CheckInputsFromMempoolAndCache(tx, state, m_view, m_pool, currentBlockScriptVerifyFlags,
ws.m_precomputed_txdata, m_active_chainstate.CoinsTip())) {
- return error("%s: BUG! PLEASE REPORT THIS! CheckInputScripts failed against latest-block but not STANDARD flags %s, %s",
- __func__, hash.ToString(), state.ToString());
+ LogPrintf("BUG! PLEASE REPORT THIS! CheckInputScripts failed against latest-block but not STANDARD flags %s, %s\n", hash.ToString(), state.ToString());
+ return Assume(false);
}
return true;