Rework RPCServer to go through NetworkOPs.

This commit is contained in:
Arthur Britto
2012-05-30 00:41:10 -07:00
parent 02fd3e2f7a
commit 68c8434a2b
14 changed files with 330 additions and 121 deletions

View File

@@ -8,8 +8,8 @@
#include "HttpRequest.h"
#include "RequestParser.h"
#include "NewcoinAddress.h"
#include "SerializedLedger.h"
#include "NetworkOPs.h"
#include "SerializedLedger.h"
class RPCServer : public boost::enable_shared_from_this<RPCServer>
{
@@ -36,11 +36,11 @@ private:
int getParamCount(const Json::Value& params);
bool extractString(std::string& param, const Json::Value& params, int index);
Json::Value authorize(const NewcoinAddress& naSeed, const NewcoinAddress& naSrcAccountID,
Json::Value authorize(const uint256& uLedger, const NewcoinAddress& naSeed, const NewcoinAddress& naSrcAccountID,
NewcoinAddress& naAccountPublic, NewcoinAddress& naAccountPrivate,
SerializedLedgerEntry::pointer& sleSrc);
AccountState::pointer& asSrc);
Json::Value accountFromString(NewcoinAddress& naAccount, bool& bIndex, const std::string& strIdent, const int iIndex);
Json::Value accountFromString(const uint256& uLedger, NewcoinAddress& naAccount, bool& bIndex, const std::string& strIdent, const int iIndex);
Json::Value doAccountInfo(Json::Value& params);
Json::Value doAccountLines(Json::Value &params);