status-go/geth
Dmitry Shulyak 375d5ec8c3
Explicitly disable discovery (#886)
* Make it possible to explicitly disable discovery

Discovery will be disabled in following cases:
- if there are not bootnodes - v5 server will be disabled
because there is no point in running it
- if user defined in config NoDiscovery=true this value will be preserved
even if we have bootnodes

So, basically discovery will be always enabled by default on mobile, unless
it is explicitly specified otherwise.

When statusd is used current behavior is that discovery is disabled by default.
I kept it in this change, but it would be better to change it.

* Fix leftovers

* Add wait group to peer pool to protect from races with p2p.Server

* Change fields only when all goroutines finished

* Turn off discovery after topic searches are stopped

* Don't set period to nil to avoid race with SearchTopic

* Close period chan only when all writers are finished
2018-05-10 14:45:51 +03:00
..
account Move concurrent backend test from e2e to unit (#849) 2018-04-20 17:39:53 +02:00
api Implement block filters API for the RPC mode. 2018-05-08 19:46:25 +02:00
db Add `shhext_getNewFilterMessages` function to RPC APIs. 2018-04-27 15:24:37 +02:00
jail Move signal logic into signal package 2018-05-03 09:35:58 +02:00
node Explicitly disable discovery (#886) 2018-05-10 14:45:51 +03:00
notifications/push Mockgen import cycle not allowed && recover missing mockgens (#824) 2018-04-13 15:10:37 +02:00
params Explicitly disable discovery (#886) 2018-05-10 14:45:51 +03:00
peers Explicitly disable discovery (#886) 2018-05-10 14:45:51 +03:00
rpc Implement block filters API for the RPC mode. 2018-05-08 19:46:25 +02:00
transactions Remove mention of DevMode (#869) 2018-04-26 19:59:57 +02:00