From 212aa41143f1302b55dff47226741109ac1e45dc Mon Sep 17 00:00:00 2001 From: Carlos Lopez-Camey Date: Sat, 7 Feb 2015 17:04:22 -0600 Subject: [PATCH] Updates PeerGroup's javadoc: PeerGroup is not a guava service as from 27bc229 --- core/src/main/java/org/bitcoinj/core/PeerGroup.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/core/src/main/java/org/bitcoinj/core/PeerGroup.java b/core/src/main/java/org/bitcoinj/core/PeerGroup.java index b587096c..ee71e492 100644 --- a/core/src/main/java/org/bitcoinj/core/PeerGroup.java +++ b/core/src/main/java/org/bitcoinj/core/PeerGroup.java @@ -70,13 +70,12 @@ import static com.google.common.base.Preconditions.checkState; *

The PeerGroup can broadcast a transaction to the currently connected set of peers. It can * also handle download of the blockchain from peers, restarting the process when peers die.

* - *

PeerGroup implements the {@link Service} interface. This means before it will do anything, - * you must call the {@link com.google.common.util.concurrent.Service#start()} method (which returns - * a future) or {@link com.google.common.util.concurrent.Service#startAndWait()} method, which will block - * until peer discovery is completed and some outbound connections have been initiated (it will return - * before handshaking is done, however). You should call {@link com.google.common.util.concurrent.Service#stop()} - * when finished. Note that not all methods of PeerGroup are safe to call from a UI thread as some may do - * network IO, but starting and stopping the service should be fine.

+ *

A PeerGroup won't do anything until you call the {@link PeerGroup#start()} method + * which will block until peer discovery is completed and some outbound connections + * have been initiated (it will return before handshaking is done, however). + * You should call {@link PeerGroup#stop()} when finished. Note that not all methods + * of PeerGroup are safe to call from a UI thread as some may do network IO, + * but starting and stopping the service should be fine.

*/ public class PeerGroup implements TransactionBroadcaster { private static final Logger log = LoggerFactory.getLogger(PeerGroup.class);