Restore code that needs to be amendment gated

This commit is contained in:
Ed Hennis
2025-11-21 14:46:34 -05:00
parent 66da6a8608
commit cc9b6fc68c

View File

@@ -40,6 +40,16 @@ checkValidity(
return {
Validity::SigBad,
"Malformed: Invalid inner batch transaction."};
std::string reason;
if (!passesLocalChecks(tx, reason))
{
router.setFlags(id, SF_LOCALBAD);
return {Validity::SigGoodOnly, reason};
}
router.setFlags(id, SF_SIGGOOD);
return {Validity::Valid, ""};
}
if (any(flags & SF_SIGBAD))