mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-04 11:55:51 +00:00
report ledger when no marker exists in ledger_data (#203)
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user