Lots of debugging.

This commit is contained in:
Arthur Britto
2012-05-30 13:35:58 -07:00
parent a283d9df30
commit 0faa7ea071
4 changed files with 49 additions and 8 deletions

View File

@@ -367,14 +367,11 @@ Json::Value RPCServer::doAccountLines(Json::Value &params)
Json::Value ret;
// This needs to use a ledger.
ret = accountFromString(uLedger, naAccount, bIndex, strIdent, iIndex);
if (!ret.empty())
return ret;
// SHAMap::pointer smAccounts = theApp->getMasterLedger().getCurrentLedger()->peekAccountStateMap();
// Get info on account.
ret = Json::Value(Json::objectValue);
@@ -382,13 +379,12 @@ Json::Value RPCServer::doAccountLines(Json::Value &params)
if (bIndex)
ret["index"] = iIndex;
AccountState::pointer as = mNetOps->getAccountState(uLedger, naAccount);
AccountState::pointer as = mNetOps->getAccountState(uLedger, naAccount);
if (as)
{
ret["account"] = naAccount.humanAccountID();
// We access a committed ledger and need not worry about changes.
// XXX We need to get the ID of the commited ledger for a conistent view.
uint256 uDirLineNodeFirst;
uint256 uDirLineNodeLast;