report ledger when no marker exists in ledger_data (#203)

This commit is contained in:
Nathan Nichols
2022-07-15 13:25:46 -05:00
committed by GitHub
parent 4468302852
commit d83975e750

View File

@@ -79,7 +79,7 @@ doLedgerData(Context const& context)
boost::json::object header;
// no marker means this is the first call, so we return header info
if (!marker)
if (!request.contains(JS(marker)))
{
if (binary)
{
@@ -106,9 +106,9 @@ doLedgerData(Context const& context)
header[JS(totalCoins)] = ripple::to_string(lgrInfo.drops);
header[JS(total_coins)] = ripple::to_string(lgrInfo.drops);
header[JS(transaction_hash)] = ripple::strHex(lgrInfo.txHash);
response[JS(ledger)] = header;
}
response[JS(ledger)] = header;
}
else
{