aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/api/admin_js.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-06-23 22:44:03 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-06-23 22:44:03 +0800
commit6b5532ab0d0e88f27af539840c58cbd6de13de90 (patch)
tree84f1856e1b3fb2fd927e6ef9c59983e4fb347a8c /rpc/api/admin_js.go
parent139439dcdc14e448bfdbd509bb135faa92337a28 (diff)
parent2b3957f3737b56622e38425a52caea2a836f8b63 (diff)
downloadgo-tangerine-6b5532ab0d0e88f27af539840c58cbd6de13de90.tar
go-tangerine-6b5532ab0d0e88f27af539840c58cbd6de13de90.tar.gz
go-tangerine-6b5532ab0d0e88f27af539840c58cbd6de13de90.tar.bz2
go-tangerine-6b5532ab0d0e88f27af539840c58cbd6de13de90.tar.lz
go-tangerine-6b5532ab0d0e88f27af539840c58cbd6de13de90.tar.xz
go-tangerine-6b5532ab0d0e88f27af539840c58cbd6de13de90.tar.zst
go-tangerine-6b5532ab0d0e88f27af539840c58cbd6de13de90.zip
Merge pull request #1279 from bas-vk/rpc-http
Integrate console and remove old rpc package structure
Diffstat (limited to 'rpc/api/admin_js.go')
-rw-r--r--rpc/api/admin_js.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/rpc/api/admin_js.go b/rpc/api/admin_js.go
index c3e713c67..97642ade7 100644
--- a/rpc/api/admin_js.go
+++ b/rpc/api/admin_js.go
@@ -39,6 +39,20 @@ web3._extend({
params: 1,
inputFormatter: [web3._extend.utils.formatInputString],
outputFormatter: web3._extend.formatters.formatOutputString
+ }),
+ new web3._extend.Method({
+ name: 'startRPC',
+ call: 'admin_startRPC',
+ params: 4,
+ inputFormatter: [web3._extend.utils.formatInputString,web3._extend.utils.formatInputInteger,web3._extend.utils.formatInputString,web3._extend.utils.formatInputString],
+ outputFormatter: web3._extend.formatters.formatOutputBool
+ }),
+ new web3._extend.Method({
+ name: 'stopRPC',
+ call: 'admin_stopRPC',
+ params: 0,
+ inputFormatter: [],
+ outputFormatter: web3._extend.formatters.formatOutputBool
})
],
properties: