fix20250131 (#428)

Co-authored-by: Denis Angell <dangell@transia.co>
This commit is contained in:
RichardAH
2025-02-03 10:33:19 +10:00
committed by GitHub
parent fa71bda29c
commit 2fd465bb3f
10 changed files with 103 additions and 9 deletions

View File

@@ -240,7 +240,9 @@ TxMeta::addRaw(Serializer& s, TER result, std::uint32_t index)
{
mResult = TERtoInt(result);
mIndex = index;
assert((mResult == 0) || ((mResult > 100) && (mResult <= 255)));
assert(
(mResult == 0 || mResult == 1) ||
((mResult > 100) && (mResult <= 255)));
mNodes.sort([](STObject const& o1, STObject const& o2) {
return o1.getFieldH256(sfLedgerIndex) < o2.getFieldH256(sfLedgerIndex);