Fix RPC decimal parsing.

This commit is contained in:
Arthur Britto
2012-07-10 21:20:09 -07:00
parent db7cf11312
commit 0c4b739010
2 changed files with 17 additions and 3 deletions

View File

@@ -1124,6 +1124,8 @@ Json::Value RPCServer::doRippleLinesGet(const Json::Value &params)
jPeer["node"] = uNode.ToString();
jPeer["account"] = rsLine->getAccountIDPeer().humanAccountID();
// Amount reported is positive if current account hold's other account's IOUs.
// Amount reported is negative if other account hold's current account's IOUs.
jPeer["balance"] = saBalance.getText();
jPeer["currency"] = saBalance.getCurrencyHuman();
jPeer["limit"] = saLimit.getJson(0);