From 4751b6a65c5d1d08a4f45988d91cca61103f2172 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Wed, 4 Dec 2013 17:09:22 -0800 Subject: [PATCH] Fix for issue 211, fixes to NetworkOPs getTxsAccountB --- src/ripple_app/misc/NetworkOPs.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ripple_app/misc/NetworkOPs.cpp b/src/ripple_app/misc/NetworkOPs.cpp index 1996819fa7..b56f560852 100644 --- a/src/ripple_app/misc/NetworkOPs.cpp +++ b/src/ripple_app/misc/NetworkOPs.cpp @@ -1975,7 +1975,7 @@ NetworkOPsImp::getTxsAccountB (const RippleAddress& account, int32 minLedger, in if (!token.isMember("ledger") || !token.isMember("seq")) return ret; findLedger = token["ledger"].asInt(); - findSeq = token["ledger"].asInt(); + findSeq = token["seq"].asInt(); } catch (...) { @@ -1983,6 +1983,8 @@ NetworkOPsImp::getTxsAccountB (const RippleAddress& account, int32 minLedger, in } } + token = Json::nullValue; + std::string sql = boost::str (boost::format ("SELECT AccountTransactions.LedgerSeq,AccountTransactions.TxnSeq,Status,RawTxn,TxnMeta " "FROM AccountTransactions INNER JOIN Transactions ON Transactions.TransID = AccountTransactions.TransID "