aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/api/utils.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-10-23 00:27:05 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-10-23 00:27:05 +0800
commitdce503779b2866d1d35b4582470604c0d7e156db (patch)
tree7d8817ec84be38b911f967f1ecd5618d02e4caa9 /rpc/api/utils.go
parent58d0752fdd1c7363fb1a127cd7e0a86d7602be02 (diff)
parent8b81ad1fc40080af441c0c6df94f0b2ea46e320b (diff)
downloaddexon-dce503779b2866d1d35b4582470604c0d7e156db.tar
dexon-dce503779b2866d1d35b4582470604c0d7e156db.tar.gz
dexon-dce503779b2866d1d35b4582470604c0d7e156db.tar.bz2
dexon-dce503779b2866d1d35b4582470604c0d7e156db.tar.lz
dexon-dce503779b2866d1d35b4582470604c0d7e156db.tar.xz
dexon-dce503779b2866d1d35b4582470604c0d7e156db.tar.zst
dexon-dce503779b2866d1d35b4582470604c0d7e156db.zip
Merge pull request #1840 from ethersphere/console
console, cli, api fixes
Diffstat (limited to 'rpc/api/utils.go')
-rw-r--r--rpc/api/utils.go11
1 files changed, 9 insertions, 2 deletions
diff --git a/rpc/api/utils.go b/rpc/api/utils.go
index 76b2c531d..719cb8074 100644
--- a/rpc/api/utils.go
+++ b/rpc/api/utils.go
@@ -33,14 +33,21 @@ var (
"admin": []string{
"addPeer",
"datadir",
+ "enableUserAgent",
"exportChain",
"getContractInfo",
+ "httpGet",
"importChain",
"nodeInfo",
"peers",
"register",
"registerUrl",
+ "saveInfo",
+ "setGlobalRegistrar",
+ "setHashReg",
+ "setUrlHint",
"setSolc",
+ "sleep",
"sleepBlocks",
"startNatSpec",
"startRPC",
@@ -146,7 +153,7 @@ var (
)
// Parse a comma separated API string to individual api's
-func ParseApiString(apistr string, codec codec.Codec, xeth *xeth.XEth, eth *eth.Ethereum) ([]shared.EthereumApi, error) {
+func ParseApiString(apistr string, codec codec.Codec, xeth *xeth.XEth, eth *eth.Ethereum, docRoot string) ([]shared.EthereumApi, error) {
if len(strings.TrimSpace(apistr)) == 0 {
return nil, fmt.Errorf("Empty apistr provided")
}
@@ -157,7 +164,7 @@ func ParseApiString(apistr string, codec codec.Codec, xeth *xeth.XEth, eth *eth.
for i, name := range names {
switch strings.ToLower(strings.TrimSpace(name)) {
case shared.AdminApiName:
- apis[i] = NewAdminApi(xeth, eth, codec)
+ apis[i] = NewAdminApi(xeth, eth, codec, docRoot)
case shared.DebugApiName:
apis[i] = NewDebugApi(xeth, eth, codec)
case shared.DbApiName: