Add AccountState::addJson. Make RPC call "accountinfo <account>" work

on non-local accounts and local account by account identifier.
This commit is contained in:
JoelKatz
2012-01-23 16:58:17 -08:00
parent f4c6865751
commit 7215f5b220
4 changed files with 61 additions and 3 deletions

View File

@@ -7,6 +7,8 @@
#include <boost/shared_ptr.hpp>
#include "json/value.h"
#include "types.h"
#include "uint256.h"
@@ -48,8 +50,10 @@ public:
assert(mAccountSeq!=0);
mAccountSeq--;
}
static bool isHexAccountID(const std::string& acct);
std::vector<unsigned char> getRaw() const;
void addJson(Json::Value& value);
};
#endif