WatchMempol: fix a regression

This commit is contained in:
Mike Hearn 2014-12-21 13:57:17 +01:00
parent 2b6db0dc80
commit 8f219ff458

View File

@ -27,7 +27,7 @@ import org.slf4j.LoggerFactory;
public class WatchMempool {
private static Logger log = LoggerFactory.getLogger(WatchMempool.class);
public static void main(String[] args) {
public static void main(String[] args) throws InterruptedException {
BriefLogFormatter.init();
NetworkParameters params = MainNetParams.get();
PeerGroup peerGroup = new PeerGroup(params);
@ -44,6 +44,7 @@ public class WatchMempool {
}
}
});
peerGroup.startAsync();
peerGroup.start();
Thread.sleep(Long.MAX_VALUE);
}
}