@@ -14,13 +14,17 @@ namespace dev {
14
14
public:
15
15
TestFace ()
16
16
{
17
+ this ->bindAndAddMethod (jsonrpc::Procedure (" test_getLogHash" , jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, " param1" ,jsonrpc::JSON_STRING, NULL ), &dev::rpc::TestFace::test_getLogHashI);
17
18
this ->bindAndAddMethod (jsonrpc::Procedure (" test_setChainParams" , jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, " param1" ,jsonrpc::JSON_OBJECT, NULL ), &dev::rpc::TestFace::test_setChainParamsI);
18
19
this ->bindAndAddMethod (jsonrpc::Procedure (" test_mineBlocks" , jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, " param1" ,jsonrpc::JSON_INTEGER, NULL ), &dev::rpc::TestFace::test_mineBlocksI);
19
20
this ->bindAndAddMethod (jsonrpc::Procedure (" test_modifyTimestamp" , jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, " param1" ,jsonrpc::JSON_INTEGER, NULL ), &dev::rpc::TestFace::test_modifyTimestampI);
20
21
this ->bindAndAddMethod (jsonrpc::Procedure (" test_addBlock" , jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, " param1" ,jsonrpc::JSON_STRING, NULL ), &dev::rpc::TestFace::test_addBlockI);
21
22
this ->bindAndAddMethod (jsonrpc::Procedure (" test_rewindToBlock" , jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, " param1" ,jsonrpc::JSON_INTEGER, NULL ), &dev::rpc::TestFace::test_rewindToBlockI);
22
23
}
23
-
24
+ inline virtual void test_getLogHashI (const Json::Value& request, Json::Value& response)
25
+ {
26
+ response = this ->test_getLogHash (request[0u ].asString ());
27
+ }
24
28
inline virtual void test_setChainParamsI (const Json::Value &request, Json::Value &response)
25
29
{
26
30
response = this ->test_setChainParams (request[0u ]);
@@ -41,6 +45,7 @@ namespace dev {
41
45
{
42
46
response = this ->test_rewindToBlock (request[0u ].asInt ());
43
47
}
48
+ virtual std::string test_getLogHash (const std::string& param1) = 0;
44
49
virtual bool test_setChainParams (const Json::Value& param1) = 0;
45
50
virtual bool test_mineBlocks (int param1) = 0;
46
51
virtual bool test_modifyTimestamp (int param1) = 0;
0 commit comments