Exemplo n.º 1
0
 protected void initPeerGroup() {
   if (clientType == ClientType.NIO_CLIENT_MANAGER)
     peerGroup = createPeerGroup(new NioClientManager());
   else peerGroup = createPeerGroup(new BlockingClientManager());
   peerGroup.setPingIntervalMsec(
       0); // Disable the pings as they just get in the way of most tests.
   peerGroup.addWallet(wallet);
   peerGroup.setUseLocalhostPeerWhenPossible(
       false); // Prevents from connecting to neoscoin nodes on localhost.
 }