diff options
author | Marek Kotewicz <marek.kotewicz@gmail.com> | 2015-02-07 18:58:38 +0800 |
---|---|---|
committer | Marek Kotewicz <marek.kotewicz@gmail.com> | 2015-02-07 18:58:38 +0800 |
commit | 360f479143aeb13bd8db66d0db499ed56c0c66b5 (patch) | |
tree | 179893dbf880f6d4dedba387e9564b436e2b7c66 | |
parent | 366284d37c555b2dfbbd8b8cf37a943660e5b69c (diff) | |
download | dexon-solidity-360f479143aeb13bd8db66d0db499ed56c0c66b5.tar dexon-solidity-360f479143aeb13bd8db66d0db499ed56c0c66b5.tar.gz dexon-solidity-360f479143aeb13bd8db66d0db499ed56c0c66b5.tar.bz2 dexon-solidity-360f479143aeb13bd8db66d0db499ed56c0c66b5.tar.lz dexon-solidity-360f479143aeb13bd8db66d0db499ed56c0c66b5.tar.xz dexon-solidity-360f479143aeb13bd8db66d0db499ed56c0c66b5.tar.zst dexon-solidity-360f479143aeb13bd8db66d0db499ed56c0c66b5.zip |
jsonrpcstub integreted into cmake build process
-rw-r--r-- | webthreestubclient.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/webthreestubclient.h b/webthreestubclient.h index 6a82263d..b7cdf015 100644 --- a/webthreestubclient.h +++ b/webthreestubclient.h @@ -213,6 +213,16 @@ class WebThreeStubClient : public jsonrpc::Client else throw jsonrpc::JsonRpcException(jsonrpc::Errors::ERROR_CLIENT_INVALID_RESPONSE, result.toStyledString()); } + bool eth_flush() throw (jsonrpc::JsonRpcException) + { + Json::Value p; + p = Json::nullValue; + Json::Value result = this->CallMethod("eth_flush",p); + if (result.isBool()) + return result.asBool(); + else + throw jsonrpc::JsonRpcException(jsonrpc::Errors::ERROR_CLIENT_INVALID_RESPONSE, result.toStyledString()); + } Json::Value eth_blockByHash(const std::string& param1) throw (jsonrpc::JsonRpcException) { Json::Value p; @@ -347,13 +357,13 @@ class WebThreeStubClient : public jsonrpc::Client else throw jsonrpc::JsonRpcException(jsonrpc::Errors::ERROR_CLIENT_INVALID_RESPONSE, result.toStyledString()); } - bool eth_changed(const int& param1) throw (jsonrpc::JsonRpcException) + Json::Value eth_changed(const int& param1) throw (jsonrpc::JsonRpcException) { Json::Value p; p.append(param1); Json::Value result = this->CallMethod("eth_changed",p); - if (result.isBool()) - return result.asBool(); + if (result.isArray()) + return result; else throw jsonrpc::JsonRpcException(jsonrpc::Errors::ERROR_CLIENT_INVALID_RESPONSE, result.toStyledString()); } |