aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/server.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-05-11 16:49:44 +0800
committerPéter Szilágyi <peterke@gmail.com>2016-05-11 16:49:44 +0800
commitbc6fdad786706019fc5aeb9605f1d23b3c5b7522 (patch)
tree448a5220cd252bddd7c4276314fb82ce894b59f2 /rpc/server.go
parentc05db38a5ee87c1700faf929db0a9156b263ec95 (diff)
downloadgo-tangerine-bc6fdad786706019fc5aeb9605f1d23b3c5b7522.tar
go-tangerine-bc6fdad786706019fc5aeb9605f1d23b3c5b7522.tar.gz
go-tangerine-bc6fdad786706019fc5aeb9605f1d23b3c5b7522.tar.bz2
go-tangerine-bc6fdad786706019fc5aeb9605f1d23b3c5b7522.tar.lz
go-tangerine-bc6fdad786706019fc5aeb9605f1d23b3c5b7522.tar.xz
go-tangerine-bc6fdad786706019fc5aeb9605f1d23b3c5b7522.tar.zst
go-tangerine-bc6fdad786706019fc5aeb9605f1d23b3c5b7522.zip
cmd/geth, internal/web3ext, rpc: surface rpc module, fix shh, fix miner
Diffstat (limited to 'rpc/server.go')
-rw-r--r--rpc/server.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/rpc/server.go b/rpc/server.go
index 001107a1b..69f3271e8 100644
--- a/rpc/server.go
+++ b/rpc/server.go
@@ -34,7 +34,8 @@ const (
notificationBufferSize = 10000 // max buffered notifications before codec is closed
- DefaultIPCApis = "admin,eth,debug,miner,net,shh,txpool,personal,web3"
+ MetadataApi = "rpc"
+ DefaultIPCApis = "admin,debug,eth,miner,net,personal,shh,txpool,web3"
DefaultHTTPApis = "eth,net,web3"
)
@@ -61,7 +62,7 @@ func NewServer() *Server {
// register a default service which will provide meta information about the RPC service such as the services and
// methods it offers.
rpcService := &RPCService{server}
- server.RegisterName("rpc", rpcService)
+ server.RegisterName(MetadataApi, rpcService)
return server
}