aboutsummaryrefslogtreecommitdiffstats
path: root/node/service.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-12-15 00:38:10 +0800
committerFelix Lange <fjl@twurst.com>2015-12-15 00:38:10 +0800
commitfa187a366dda1894179635eeec2a929bfacc4ad3 (patch)
tree4494d4dcded47dd49f2fe7374e85fefa9249246e /node/service.go
parent787d71d6595df98586c625e82f4decb034215203 (diff)
parenteae81465c1c815c317cd30e4de6bdf4d59df2340 (diff)
downloaddexon-fa187a366dda1894179635eeec2a929bfacc4ad3.tar
dexon-fa187a366dda1894179635eeec2a929bfacc4ad3.tar.gz
dexon-fa187a366dda1894179635eeec2a929bfacc4ad3.tar.bz2
dexon-fa187a366dda1894179635eeec2a929bfacc4ad3.tar.lz
dexon-fa187a366dda1894179635eeec2a929bfacc4ad3.tar.xz
dexon-fa187a366dda1894179635eeec2a929bfacc4ad3.tar.zst
dexon-fa187a366dda1894179635eeec2a929bfacc4ad3.zip
Merge pull request #2035 from bas-vk/rcp-v2-rebase
rpc: new RPC implementation with pub/sub support
Diffstat (limited to 'node/service.go')
-rw-r--r--node/service.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/node/service.go b/node/service.go
index bfeeb7ab9..b83d4c80d 100644
--- a/node/service.go
+++ b/node/service.go
@@ -23,6 +23,7 @@ import (
"github.com/ethereum/go-ethereum/ethdb"
"github.com/ethereum/go-ethereum/event"
"github.com/ethereum/go-ethereum/p2p"
+ rpc "github.com/ethereum/go-ethereum/rpc/v2"
)
// ServiceContext is a collection of service independent options inherited from
@@ -70,6 +71,9 @@ type Service interface {
// Protocol retrieves the P2P protocols the service wishes to start.
Protocols() []p2p.Protocol
+ // APIs retrieves the list of RPC descriptors the service provides
+ APIs() []rpc.API
+
// Start is called after all services have been constructed and the networking
// layer was also initialized to spawn any goroutines required by the service.
Start(server *p2p.Server) error