|
|
@ -294,27 +294,21 @@ func (s *LightEthereum) APIs() []rpc.API { |
|
|
|
return append(apis, []rpc.API{ |
|
|
|
return append(apis, []rpc.API{ |
|
|
|
{ |
|
|
|
{ |
|
|
|
Namespace: "eth", |
|
|
|
Namespace: "eth", |
|
|
|
Version: "1.0", |
|
|
|
|
|
|
|
Service: &LightDummyAPI{}, |
|
|
|
Service: &LightDummyAPI{}, |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
Namespace: "eth", |
|
|
|
Namespace: "eth", |
|
|
|
Version: "1.0", |
|
|
|
|
|
|
|
Service: downloader.NewDownloaderAPI(s.handler.downloader, s.eventMux), |
|
|
|
Service: downloader.NewDownloaderAPI(s.handler.downloader, s.eventMux), |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
Namespace: "eth", |
|
|
|
Namespace: "eth", |
|
|
|
Version: "1.0", |
|
|
|
|
|
|
|
Service: filters.NewFilterAPI(s.ApiBackend, true, 5*time.Minute), |
|
|
|
Service: filters.NewFilterAPI(s.ApiBackend, true, 5*time.Minute), |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
Namespace: "net", |
|
|
|
Namespace: "net", |
|
|
|
Version: "1.0", |
|
|
|
|
|
|
|
Service: s.netRPCService, |
|
|
|
Service: s.netRPCService, |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
Namespace: "les", |
|
|
|
Namespace: "les", |
|
|
|
Version: "1.0", |
|
|
|
|
|
|
|
Service: NewLightAPI(&s.lesCommons), |
|
|
|
Service: NewLightAPI(&s.lesCommons), |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
Namespace: "vflux", |
|
|
|
Namespace: "vflux", |
|
|
|
Version: "1.0", |
|
|
|
|
|
|
|
Service: s.serverPool.API(), |
|
|
|
Service: s.serverPool.API(), |
|
|
|
}, |
|
|
|
}, |
|
|
|
}...) |
|
|
|
}...) |
|
|
|