Examples: demo.js to use current PeerGroup start() API

This commit is contained in:
Mike Hearn 2015-06-25 19:02:31 +02:00
parent db42dc4630
commit 7666d84625

View File

@ -56,8 +56,7 @@ bcj.utils.BriefLogFormatter.init();
var PeerGroup = bcj.core.PeerGroup;
var pg = new PeerGroup(params)
pg.addPeerDiscovery(new bcj.net.discovery.DnsDiscovery(params));
pg.startAsync();
pg.awaitRunning();
pg.start();
// Wait until we have at least three peers.
print("Waiting for some peers")