diff options
author | zelig <viktor.tron@gmail.com> | 2015-06-30 23:39:31 +0800 |
---|---|---|
committer | Jeffrey Wilcke <geffobscura@gmail.com> | 2015-07-07 16:43:31 +0800 |
commit | 6391ec0c8f5ea645d772ede9f4c6fbda3d84105f (patch) | |
tree | 53fabc04699e699f41157fb3a43f13f9ef058320 /rpc | |
parent | 27392337198b9287e9f6fe615510a1f30099e3d7 (diff) | |
download | go-tangerine-6391ec0c8f5ea645d772ede9f4c6fbda3d84105f.tar go-tangerine-6391ec0c8f5ea645d772ede9f4c6fbda3d84105f.tar.gz go-tangerine-6391ec0c8f5ea645d772ede9f4c6fbda3d84105f.tar.bz2 go-tangerine-6391ec0c8f5ea645d772ede9f4c6fbda3d84105f.tar.lz go-tangerine-6391ec0c8f5ea645d772ede9f4c6fbda3d84105f.tar.xz go-tangerine-6391ec0c8f5ea645d772ede9f4c6fbda3d84105f.tar.zst go-tangerine-6391ec0c8f5ea645d772ede9f4c6fbda3d84105f.zip |
add missing method to api/admin
Diffstat (limited to 'rpc')
-rw-r--r-- | rpc/api/admin.go | 1 | ||||
-rw-r--r-- | rpc/api/admin_js.go | 18 |
2 files changed, 17 insertions, 2 deletions
diff --git a/rpc/api/admin.go b/rpc/api/admin.go index 40199caa9..0230937fa 100644 --- a/rpc/api/admin.go +++ b/rpc/api/admin.go @@ -43,6 +43,7 @@ var ( "admin_datadir": (*adminApi).DataDir, "admin_startRPC": (*adminApi).StartRPC, "admin_stopRPC": (*adminApi).StopRPC, + "admin_sleepBlocks": (*adminApi).SleepBlocks, "admin_setGlobalRegistrar": (*adminApi).SetGlobalRegistrar, "admin_setHashReg": (*adminApi).SetHashReg, "admin_setUrlHint": (*adminApi).SetUrlHint, diff --git a/rpc/api/admin_js.go b/rpc/api/admin_js.go index 1f822f2c7..17be63575 100644 --- a/rpc/api/admin_js.go +++ b/rpc/api/admin_js.go @@ -27,6 +27,13 @@ web3._extend({ outputFormatter: function(obj) { return obj; } }), new web3._extend.Method({ + name: 'sleepBlocks', + call: 'admin_sleepBlocks', + params: 2, + inputFormatter: [web3._extend.utils.formatInputInt,web3._extend.utils.formatInputInt], + outputFormatter: web3._extend.formatters.formatOutputInt + }), + new web3._extend.Method({ name: 'verbosity', call: 'admin_verbosity', params: 1, @@ -69,6 +76,13 @@ web3._extend({ outputFormatter: web3._extend.formatters.formatOutputString }), new web3._extend.Method({ + name: 'setUrlHint', + call: 'admin_setUrlHint', + params: 2, + inputFormatter: [web3._extend.utils.formatInputString,web3._extend.utils.formatInputString], + outputFormatter: web3._extend.formatters.formatOutputString + }), + new web3._extend.Method({ name: 'saveInfo', call: 'admin_saveInfo', params: 2, @@ -90,14 +104,14 @@ web3._extend({ outputFormatter: web3._extend.formatters.formatOutputBool }), new web3._extend.Method({ - name: 'StartNatSpec', + name: 'startNatSpec', call: 'admin_startNatSpec', params: 0, inputFormatter: [], outputFormatter: web3._extend.formatters.formatOutputBool }), new web3._extend.Method({ - name: 'StopNatSpec', + name: 'stopNatSpec', call: 'admin_stopNatSpec', params: 0, inputFormatter: [], |