bitcoinj / bitcoinj

A library for working with Bitcoin
https://bitcoinj.org
Apache License 2.0
4.99k stars 2.48k forks source link

cleanly swap PeerDiscovery #556

Closed mikehearn closed 9 years ago

mikehearn commented 9 years ago

Originally reported on Google Code with ID 190

I'd like to be able to completely purge the list of peers and supply a new PeerDiscovery.
All peers not discovered by the new discovery should be disconnected.

Currently, I need to tear down PeerGroup for this.

Reported by andreas.schildbach on 2012-05-18 22:49:46

mikehearn commented 9 years ago
PeerGroup is now a Guava service which doesn't support being restarted. Restarting things
is trickier than it looks, supporting it doesn't seem like a big deal given that you
can just recreate the object.

Reported by hearn@google.com on 2013-01-08 16:29:08