@@ -60,7 +60,7 @@ class AbstractWebThreeStubServer : public jsonrpc::AbstractServer<AbstractWebThr
60
60
this ->bindAndAddMethod (jsonrpc::Procedure (" eth_getLogsEx" , jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_ARRAY, " param1" ,jsonrpc::JSON_OBJECT, NULL ), &AbstractWebThreeStubServer::eth_getLogsExI);
61
61
this ->bindAndAddMethod (jsonrpc::Procedure (" eth_getWork" , jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_ARRAY, NULL ), &AbstractWebThreeStubServer::eth_getWorkI);
62
62
this ->bindAndAddMethod (jsonrpc::Procedure (" eth_submitWork" , jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, " param1" ,jsonrpc::JSON_STRING," param2" ,jsonrpc::JSON_STRING," param3" ,jsonrpc::JSON_STRING, NULL ), &AbstractWebThreeStubServer::eth_submitWorkI);
63
- this ->bindAndAddMethod (jsonrpc::Procedure (" eth_submitHashrate" , jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, " param1" ,jsonrpc::JSON_INTEGER ," param2" ,jsonrpc::JSON_STRING, NULL ), &AbstractWebThreeStubServer::eth_submitHashrateI);
63
+ this ->bindAndAddMethod (jsonrpc::Procedure (" eth_submitHashrate" , jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, " param1" ,jsonrpc::JSON_STRING ," param2" ,jsonrpc::JSON_STRING, NULL ), &AbstractWebThreeStubServer::eth_submitHashrateI);
64
64
this ->bindAndAddMethod (jsonrpc::Procedure (" eth_register" , jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_STRING, " param1" ,jsonrpc::JSON_STRING, NULL ), &AbstractWebThreeStubServer::eth_registerI);
65
65
this ->bindAndAddMethod (jsonrpc::Procedure (" eth_unregister" , jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, " param1" ,jsonrpc::JSON_STRING, NULL ), &AbstractWebThreeStubServer::eth_unregisterI);
66
66
this ->bindAndAddMethod (jsonrpc::Procedure (" eth_fetchQueuedTransactions" , jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_ARRAY, " param1" ,jsonrpc::JSON_STRING, NULL ), &AbstractWebThreeStubServer::eth_fetchQueuedTransactionsI);
@@ -315,7 +315,7 @@ class AbstractWebThreeStubServer : public jsonrpc::AbstractServer<AbstractWebThr
315
315
}
316
316
inline virtual void eth_submitHashrateI (const Json::Value &request, Json::Value &response)
317
317
{
318
- response = this ->eth_submitHashrate (request[0u ].asInt (), request[1u ].asString ());
318
+ response = this ->eth_submitHashrate (request[0u ].asString (), request[1u ].asString ());
319
319
}
320
320
inline virtual void eth_registerI (const Json::Value &request, Json::Value &response)
321
321
{
@@ -534,7 +534,7 @@ class AbstractWebThreeStubServer : public jsonrpc::AbstractServer<AbstractWebThr
534
534
virtual Json::Value eth_getLogsEx (const Json::Value& param1) = 0;
535
535
virtual Json::Value eth_getWork () = 0;
536
536
virtual bool eth_submitWork (const std::string& param1, const std::string& param2, const std::string& param3) = 0;
537
- virtual bool eth_submitHashrate (int param1, const std::string& param2) = 0;
537
+ virtual bool eth_submitHashrate (const std::string& param1, const std::string& param2) = 0;
538
538
virtual std::string eth_register (const std::string& param1) = 0;
539
539
virtual bool eth_unregister (const std::string& param1) = 0;
540
540
virtual Json::Value eth_fetchQueuedTransactions (const std::string& param1) = 0;
0 commit comments