Match format to rippled error code (#461)

Fixes #263
This commit is contained in:
Francis Mendoza
2023-01-04 12:53:37 -08:00
committed by GitHub
parent 2f65a26dc7
commit 0c2ca1737e

View File

@@ -1597,9 +1597,7 @@ traverseTransactions(
{ {
if (context.range.maxSequence < *max || if (context.range.maxSequence < *max ||
context.range.minSequence > *max) context.range.minSequence > *max)
return Status{ return Status{RippledError::rpcLGR_IDX_MALFORMED};
RippledError::rpcLGR_IDX_MALFORMED,
"ledgerSeqMaxOutOfRange"};
else else
maxIndex = static_cast<uint32_t>(*max); maxIndex = static_cast<uint32_t>(*max);
} }