Fix for issue 211, fixes to NetworkOPs getTxsAccountB

This commit is contained in:
JoelKatz
2013-12-04 17:09:22 -08:00
parent b3c79f5c2f
commit 4751b6a65c

View File

@@ -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 "