コード例 #1
0
        internal void SkipToEnd()
        {
            var height = Math.Min(ToHeight, _BlockHeaders.Tip.Height);

            _LastProcessed = _BlockHeaders.GetBlock(height);
            IndexerTrace.Information("Skipped to the end at height " + height);
        }
コード例 #2
0
        public ChainBase GetNodeChain(Node node)
        {
            var chain = new ConcurrentChain(this.Configuration.Network);

            IndexerTrace.Information("Synchronizing with local node");
            node.SynchronizeChain(chain);
            IndexerTrace.Information("Chain loaded with height " + chain.Height);
            return(chain);
        }
コード例 #3
0
 public ChainBase GetNodeChain()
 {
     IndexerTrace.Information("Connecting to node " + this.Configuration.Node);
     using (var node = this.Configuration.ConnectToNode(false))
     {
         IndexerTrace.Information("Handshaking");
         node.VersionHandshake();
         return(this.GetNodeChain(node));
     }
 }