From 6df2cad2214bafc58797245b1390cd3810ad0ec7 Mon Sep 17 00:00:00 2001 From: Anton Evangelatov Date: Thu, 14 Mar 2019 14:48:48 +0100 Subject: [PATCH] swarm: enable stream api --- swarm/network/stream/stream.go | 2 +- swarm/swarm.go | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/swarm/network/stream/stream.go b/swarm/network/stream/stream.go index c7c489152a..1038e52d0a 100644 --- a/swarm/network/stream/stream.go +++ b/swarm/network/stream/stream.go @@ -910,7 +910,7 @@ func (r *Registry) APIs() []rpc.API { Namespace: "stream", Version: "3.0", Service: r.api, - Public: true, + Public: false, }, } } diff --git a/swarm/swarm.go b/swarm/swarm.go index b4b08c5c54..ae78ccd487 100644 --- a/swarm/swarm.go +++ b/swarm/swarm.go @@ -522,6 +522,8 @@ func (s *Swarm) APIs() []rpc.API { apis = append(apis, s.bzz.APIs()...) + apis = append(apis, s.streamer.APIs()...) + if s.ps != nil { apis = append(apis, s.ps.APIs()...) }