Beispiel #1
0
 public void CanHandshake()
 {
     using (var server = new NodeServer(Network.Main, ProtocolVersion.PROTOCOL_VERSION))
     {
         var seed = server.GetNodeByHostName("seed.bitcoin.sipa.be");
         Assert.True(seed.State == NodeState.Connected);
         seed.VersionHandshake();
         Assert.True(seed.State == NodeState.HandShaked);
         seed.Disconnect();
         Assert.True(seed.State == NodeState.Offline);
     }
 }