[validation] set PackageValidationState when mempool full
This commit is contained in:
1 parent
563a2ee4f5
commit
b51ebccc28
1 file changed
+1
@@ -1199,6 +1199,7 @@ bool MemPoolAccept::SubmitPackage(const ATMPArgs& args, std::vector<Workspace>&
|
||||
} else {
|
||||
all_submitted = false;
|
||||
ws.m_state.Invalid(TxValidationResult::TX_MEMPOOL_POLICY, "mempool full");
|
||||
package_state.Invalid(PackageValidationResult::PCKG_TX, "transaction failed");
|
||||
results.emplace(ws.m_ptx->GetWitnessHash(), MempoolAcceptResult::Failure(ws.m_state));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user