changed some RPC returns

This commit is contained in:
jed
2012-06-11 14:01:16 -07:00
parent 88e977a22f
commit 79f57bc1da
5 changed files with 8 additions and 6 deletions

View File

@@ -156,7 +156,6 @@
</ItemGroup>
<ItemGroup>
<ClInclude Include="Account.h" />
<ClInclude Include="Application.h" />
<ClInclude Include="bitcoinUtil.h" />
<ClInclude Include="Conversion.h" />
<ClInclude Include="cryptopp\config.h" />

View File

@@ -248,9 +248,6 @@
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="Application.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="KnownNodeList.h">
<Filter>Header Files</Filter>
</ClInclude>

View File

@@ -52,3 +52,6 @@
[rpc_allow_remote]
1
[validation_seed]
snTBDmrhUK3znvF8AaQURLm4UCkbS

View File

@@ -412,7 +412,8 @@ void Ledger::addJson(Json::Value& ret, int options)
}
ledger["AccountState"] = state;
}
ret[boost::lexical_cast<std::string>(mLedgerSeq)] = ledger;
ledger["SeqNum"]=boost::lexical_cast<std::string>(mLedgerSeq);
ret["ledger"] = ledger;
}
void Ledger::setAcquiring(void)

View File

@@ -1133,7 +1133,9 @@ Json::Value RPCServer::doPasswordSet(Json::Value& params)
Json::Value RPCServer::doPeers(Json::Value& params)
{
// peers
return theApp->getConnectionPool().getPeersJson();
Json::Value obj(Json::objectValue);
obj['peers']=theApp->getConnectionPool().getPeersJson();
return obj;
}
// send regular_seed paying_account account_id amount [currency] [send_max] [send_currency]