Beispiel #1
0
 public void CanDiscoverPeers()
 {
     using (var server = new NodeServer(Network.Main, ProtocolVersion.PROTOCOL_VERSION))
     {
         Assert.True(server.PeerTable.CountUsed(true) < 50);
         server.DiscoverPeers(100);
         Assert.True(server.PeerTable.CountUsed(true) > 50);
     }
 }