fix for https://github.com/Xahau/xahaud/issues/148 breaks some tests that lack index field. xls41 needs to be updated to include index field.

This commit is contained in:
Richard Holland
2023-10-24 09:11:40 +00:00
parent 1f052020cb
commit d5d29e319c

View File

@@ -271,6 +271,13 @@ syntaxCheckXPOP(Blob const& blob, beast::Journal const& j)
return {}; return {};
} }
if (!xpop["ledger"]["index"].isInt())
{
JLOG(j.warn()) << "XPOP.ledger.index missing or wrong format "
"(should be int)";
return {};
}
if (!xpop["ledger"]["flags"].isInt()) if (!xpop["ledger"]["flags"].isInt())
{ {
JLOG(j.warn()) << "XPOP.ledger.flags missing or wrong format " JLOG(j.warn()) << "XPOP.ledger.flags missing or wrong format "