internal void SkipToEnd() { var height = Math.Min(ToHeight, _BlockHeaders.Tip.Height); _LastProcessed = _BlockHeaders.GetBlock(height); IndexerTrace.Information("Skipped to the end at height " + height); }
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); }
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)); } }