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 "