aboutsummaryrefslogtreecommitdiffstats
path: root/ethstubclient.h
diff options
context:
space:
mode:
authorMarek Kotewicz <marek.kotewicz@gmail.com>2014-10-14 23:24:51 +0800
committerMarek Kotewicz <marek.kotewicz@gmail.com>2014-10-14 23:24:51 +0800
commit0a069e51b3cb0430ec7bad57ffe7ad1e95c51428 (patch)
treee9c3c39a00d00e7f6bdf1631244b1e4efdf5462e /ethstubclient.h
parent7a65f94db922e91d5c53035895d94355013e6068 (diff)
downloaddexon-solidity-0a069e51b3cb0430ec7bad57ffe7ad1e95c51428.tar
dexon-solidity-0a069e51b3cb0430ec7bad57ffe7ad1e95c51428.tar.gz
dexon-solidity-0a069e51b3cb0430ec7bad57ffe7ad1e95c51428.tar.bz2
dexon-solidity-0a069e51b3cb0430ec7bad57ffe7ad1e95c51428.tar.lz
dexon-solidity-0a069e51b3cb0430ec7bad57ffe7ad1e95c51428.tar.xz
dexon-solidity-0a069e51b3cb0430ec7bad57ffe7ad1e95c51428.tar.zst
dexon-solidity-0a069e51b3cb0430ec7bad57ffe7ad1e95c51428.zip
isMining changes to mining
Diffstat (limited to 'ethstubclient.h')
-rw-r--r--ethstubclient.h48
1 files changed, 24 insertions, 24 deletions
diff --git a/ethstubclient.h b/ethstubclient.h
index ce9e0a9a..7cf12b61 100644
--- a/ethstubclient.h
+++ b/ethstubclient.h
@@ -150,30 +150,6 @@ p["s"] = s;
}
- bool isListening() throw (jsonrpc::JsonRpcException)
- {
- Json::Value p;
- p = Json::nullValue;
- Json::Value result = this->client->CallMethod("isListening",p);
- if (result.isBool())
- return result.asBool();
- else
- throw jsonrpc::JsonRpcException(jsonrpc::Errors::ERROR_CLIENT_INVALID_RESPONSE, result.toStyledString());
-
- }
-
- bool isMining() throw (jsonrpc::JsonRpcException)
- {
- Json::Value p;
- p = Json::nullValue;
- Json::Value result = this->client->CallMethod("isMining",p);
- if (result.isBool())
- return result.asBool();
- else
- throw jsonrpc::JsonRpcException(jsonrpc::Errors::ERROR_CLIENT_INVALID_RESPONSE, result.toStyledString());
-
- }
-
std::string key() throw (jsonrpc::JsonRpcException)
{
Json::Value p;
@@ -198,6 +174,18 @@ p["s"] = s;
}
+ bool listening() throw (jsonrpc::JsonRpcException)
+ {
+ Json::Value p;
+ p = Json::nullValue;
+ Json::Value result = this->client->CallMethod("listening",p);
+ if (result.isBool())
+ return result.asBool();
+ else
+ throw jsonrpc::JsonRpcException(jsonrpc::Errors::ERROR_CLIENT_INVALID_RESPONSE, result.toStyledString());
+
+ }
+
std::string lll(const std::string& s) throw (jsonrpc::JsonRpcException)
{
Json::Value p;
@@ -224,6 +212,18 @@ p["s"] = s;
}
+ bool mining() throw (jsonrpc::JsonRpcException)
+ {
+ Json::Value p;
+ p = Json::nullValue;
+ Json::Value result = this->client->CallMethod("mining",p);
+ if (result.isBool())
+ return result.asBool();
+ else
+ throw jsonrpc::JsonRpcException(jsonrpc::Errors::ERROR_CLIENT_INVALID_RESPONSE, result.toStyledString());
+
+ }
+
int number() throw (jsonrpc::JsonRpcException)
{
Json::Value p;