Permalink
Browse files

stellard #31: Defaulting to min ledger 0.

  • Loading branch information...
marco89nish committed Aug 1, 2014
1 parent 07f3790 commit ece899c21613a3a097fb81431aabeec05923fea0
Showing with 6 additions and 4 deletions.
  1. +3 −2 src/ripple_rpc/handlers/AccountTx.cpp
  2. +3 −2 src/ripple_rpc/handlers/AccountTxOld.cpp
@@ -63,7 +63,7 @@ Json::Value RPCHandler::doAccountTx (Json::Value params, Resource::Charge& loadT
std::int64_t iLedgerMax = params.isMember ("ledger_index_max") ? params["ledger_index_max"].asInt () : -1;
uLedgerMin = iLedgerMin == -1 ? uValidatedMin : iLedgerMin;
uLedgerMin = iLedgerMin == -1 ? 0 : iLedgerMin;
uLedgerMax = iLedgerMax == -1 ? uValidatedMax : iLedgerMax;
if (uLedgerMax < uLedgerMin)
@@ -79,7 +79,8 @@ Json::Value RPCHandler::doAccountTx (Json::Value params, Resource::Charge& loadT
if (!l)
return ret;
uLedgerMin = uLedgerMax = l->getLedgerSeq ();
uLedgerMin = 0;
uLedgerMax = l->getLedgerSeq ();
}
Json::Value resumeToken;
@@ -82,7 +82,7 @@ Json::Value RPCHandler::doAccountTxOld (Json::Value params, Resource::Charge& lo
return rpcError (rpcLGR_IDXS_INVALID);
}
uLedgerMin = iLedgerMin == -1 ? uValidatedMin : iLedgerMin;
uLedgerMin = iLedgerMin == -1 ? 0 : iLedgerMin;
uLedgerMax = iLedgerMax == -1 ? uValidatedMax : iLedgerMax;
if (uLedgerMax < uLedgerMin)
@@ -98,7 +98,8 @@ Json::Value RPCHandler::doAccountTxOld (Json::Value params, Resource::Charge& lo
if (!l)
return ret;
uLedgerMin = uLedgerMax = l->getLedgerSeq ();
uLedgerMin = 0;
uLedgerMax = l->getLedgerSeq ();
}
int count = 0;

0 comments on commit ece899c

Please sign in to comment.