BitSharper.PeerGroup.DownloadBlockChain C# (CSharp) Method

DownloadBlockChain() public method

Download the block chain from peers.
This method wait until the download is complete. "Complete" is defined as downloading from at least one peer all the blocks that are in that peer's inventory.
public DownloadBlockChain ( ) : void
return void
        public void DownloadBlockChain()
        {
            var listener = new DownloadListener();
            StartBlockChainDownload(listener);
            listener.Await();
        }