mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Default to descending if deprecated ledger values used.
This commit is contained in:
@@ -1688,11 +1688,17 @@ Json::Value RPCHandler::doAccountTransactions(Json::Value jvRequest, int& cost)
|
||||
|
||||
// DEPRECATED
|
||||
if (jvRequest.isMember("ledger_min"))
|
||||
{
|
||||
jvRequest["ledger_index_min"] = jvRequest["ledger_min"];
|
||||
bDescending = true;
|
||||
}
|
||||
|
||||
// DEPRECATED
|
||||
if (jvRequest.isMember("ledger_max"))
|
||||
{
|
||||
jvRequest["ledger_index_max"] = jvRequest["ledger_max"];
|
||||
bDescending = true;
|
||||
}
|
||||
|
||||
if (jvRequest.isMember("ledger_index_min") || jvRequest.isMember("ledger_index_max"))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user