@@ -1116,6 +1116,7 @@ bool MemPoolAccept::SubmitPackage(const ATMPArgs& args, std::vector<Workspace>&
1116
1116
if (!ConsensusScriptChecks (args, ws)) {
1117
1117
results.emplace (ws.m_ptx ->GetWitnessHash (), MempoolAcceptResult::Failure (ws.m_state ));
1118
1118
// Since PolicyScriptChecks() passed, this should never fail.
1119
+ Assume (false );
1119
1120
all_submitted = false ;
1120
1121
package_state.Invalid (PackageValidationResult::PCKG_MEMPOOL_ERROR,
1121
1122
strprintf (" BUG! PolicyScriptChecks succeeded but ConsensusScriptChecks failed: %s" ,
@@ -1130,6 +1131,7 @@ bool MemPoolAccept::SubmitPackage(const ATMPArgs& args, std::vector<Workspace>&
1130
1131
m_limit_descendant_size, unused_err_string)) {
1131
1132
results.emplace (ws.m_ptx ->GetWitnessHash (), MempoolAcceptResult::Failure (ws.m_state ));
1132
1133
// Since PreChecks() and PackageMempoolChecks() both enforce limits, this should never fail.
1134
+ Assume (false );
1133
1135
all_submitted = false ;
1134
1136
package_state.Invalid (PackageValidationResult::PCKG_MEMPOOL_ERROR,
1135
1137
strprintf (" BUG! Mempool ancestors or descendants were underestimated: %s" ,
@@ -1143,6 +1145,7 @@ bool MemPoolAccept::SubmitPackage(const ATMPArgs& args, std::vector<Workspace>&
1143
1145
if (!Finalize (args, ws)) {
1144
1146
results.emplace (ws.m_ptx ->GetWitnessHash (), MempoolAcceptResult::Failure (ws.m_state ));
1145
1147
// Since LimitMempoolSize() won't be called, this should never fail.
1148
+ Assume (false );
1146
1149
all_submitted = false ;
1147
1150
package_state.Invalid (PackageValidationResult::PCKG_MEMPOOL_ERROR,
1148
1151
strprintf (" BUG! Adding to mempool failed: %s" , ws.m_ptx ->GetHash ().ToString ()));
0 commit comments