mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-01-19 05:33:44 +01:00
WatchMempol: fix a regression
This commit is contained in:
parent
2b6db0dc80
commit
8f219ff458
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user