mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
swarm: enable stream api
This commit is contained in:
parent
03d0d2633b
commit
6df2cad221
2 changed files with 3 additions and 1 deletions
|
|
@ -910,7 +910,7 @@ func (r *Registry) APIs() []rpc.API {
|
||||||
Namespace: "stream",
|
Namespace: "stream",
|
||||||
Version: "3.0",
|
Version: "3.0",
|
||||||
Service: r.api,
|
Service: r.api,
|
||||||
Public: true,
|
Public: false,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -522,6 +522,8 @@ func (s *Swarm) APIs() []rpc.API {
|
||||||
|
|
||||||
apis = append(apis, s.bzz.APIs()...)
|
apis = append(apis, s.bzz.APIs()...)
|
||||||
|
|
||||||
|
apis = append(apis, s.streamer.APIs()...)
|
||||||
|
|
||||||
if s.ps != nil {
|
if s.ps != nil {
|
||||||
apis = append(apis, s.ps.APIs()...)
|
apis = append(apis, s.ps.APIs()...)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue