[validation] set PackageValidationState when mempool full

This commit is contained in:
glozow 2023-01-24 15:31:28 +00:00
parent 563a2ee4f5
commit b51ebccc28

View File

@ -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));
}
}