forked from cerc-io/plugeth
all: remove version field from rpc.API
This commit is contained in:
@@ -35,7 +35,6 @@ func Register(stack *node.Node, backend *les.LightEthereum) error {
|
||||
stack.RegisterAPIs([]rpc.API{
|
||||
{
|
||||
Namespace: "engine",
|
||||
Version: "1.0",
|
||||
Service: NewConsensusAPI(backend),
|
||||
Authenticated: true,
|
||||
},
|
||||
|
||||
@@ -294,27 +294,21 @@ func (s *LightEthereum) APIs() []rpc.API {
|
||||
return append(apis, []rpc.API{
|
||||
{
|
||||
Namespace: "eth",
|
||||
Version: "1.0",
|
||||
Service: &LightDummyAPI{},
|
||||
}, {
|
||||
Namespace: "eth",
|
||||
Version: "1.0",
|
||||
Service: downloader.NewDownloaderAPI(s.handler.downloader, s.eventMux),
|
||||
}, {
|
||||
Namespace: "eth",
|
||||
Version: "1.0",
|
||||
Service: filters.NewFilterAPI(s.ApiBackend, true, 5*time.Minute),
|
||||
}, {
|
||||
Namespace: "net",
|
||||
Version: "1.0",
|
||||
Service: s.netRPCService,
|
||||
}, {
|
||||
Namespace: "les",
|
||||
Version: "1.0",
|
||||
Service: NewLightAPI(&s.lesCommons),
|
||||
}, {
|
||||
Namespace: "vflux",
|
||||
Version: "1.0",
|
||||
Service: s.serverPool.API(),
|
||||
},
|
||||
}...)
|
||||
|
||||
@@ -159,17 +159,14 @@ func (s *LesServer) APIs() []rpc.API {
|
||||
return []rpc.API{
|
||||
{
|
||||
Namespace: "les",
|
||||
Version: "1.0",
|
||||
Service: NewLightAPI(&s.lesCommons),
|
||||
},
|
||||
{
|
||||
Namespace: "les",
|
||||
Version: "1.0",
|
||||
Service: NewLightServerAPI(s),
|
||||
},
|
||||
{
|
||||
Namespace: "debug",
|
||||
Version: "1.0",
|
||||
Service: NewDebugAPI(s),
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user