mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-01-18 13:22:42 +01:00
Stop the main thread as the peer group thread is now daemonized.
This commit is contained in:
parent
b899b0acd3
commit
eb490f7168
@ -180,7 +180,7 @@ public class PingService {
|
||||
peerGroup.downloadBlockChain();
|
||||
System.out.println("Send coins to: " + key.toAddress(params).toString());
|
||||
System.out.println("Waiting for coins to arrive. Press Ctrl-C to quit.");
|
||||
// The PeerGroup thread keeps us alive until something kills the process.
|
||||
while (true) Thread.sleep(Long.MAX_VALUE);
|
||||
}
|
||||
|
||||
private void bounceCoins(Transaction tx) {
|
||||
|
Loading…
Reference in New Issue
Block a user