Make this code easier to debug.

This commit is contained in:
JoelKatz
2013-03-06 03:52:56 -08:00
parent 7e6e42e9d3
commit aa2503081e
6 changed files with 29 additions and 0 deletions

View File

@@ -49,4 +49,12 @@ void AccountItems::fillItems(const uint160& accountID, Ledger::ref ledger)
}
}
Json::Value AccountItems::getJson(int v)
{
Json::Value ret(Json::arrayValue);
BOOST_FOREACH(AccountItem::ref ai, mItems)
ret.append(ai->getJson(v));
return ret;
}
// vim:ts=4