Ejemplo n.º 1
0
 public void CanDownloadChain()
 {
     using (var server = new NodeServer(Network.Main))
     {
         server.RegisterPeerTableRepository(PeerCache);
         CancellationTokenSource          cancel  = new CancellationTokenSource();
         StreamObjectStream <ChainChange> changes = new StreamObjectStream <ChainChange>(new MemoryStream());
         var chain = new Chain(changes);
         server.BuildChain(changes, cancel.Token);
     }
 }