diff options
author | Peter Todd <pete@petertodd.org> | 2013-07-15 02:24:33 -0400 |
---|---|---|
committer | Peter Todd <pete@petertodd.org> | 2013-09-12 22:53:54 -0400 |
commit | 463c9710f56aff957624a03ca82a717d78694440 (patch) | |
tree | 6628328ef16f56cc52c94f0ac43b43cceebedb39 /src/bitcoinrpc.h | |
parent | 11a79680b174ec39d462925ea565a23aa8c147ad (diff) | |
download | bitcoin-463c9710f56aff957624a03ca82a717d78694440.tar.xz |
Move Parse{Hash|Hex} to be usable by all RPC code
Diffstat (limited to 'src/bitcoinrpc.h')
-rw-r--r-- | src/bitcoinrpc.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/bitcoinrpc.h b/src/bitcoinrpc.h index 1aa2e70d26..96c9fa1c65 100644 --- a/src/bitcoinrpc.h +++ b/src/bitcoinrpc.h @@ -130,6 +130,15 @@ public: extern const CRPCTable tableRPC; +// +// Utilities: convert hex-encoded Values +// (throws error if not hex). +// +extern uint256 ParseHashV(const json_spirit::Value& v, std::string strName); +extern uint256 ParseHashO(const json_spirit::Object& o, std::string strKey); +extern std::vector<unsigned char> ParseHexV(const json_spirit::Value& v, std::string strName); +extern std::vector<unsigned char> ParseHexO(const json_spirit::Object& o, std::string strKey); + extern void InitRPCMining(); extern void ShutdownRPCMining(); |