예제 #1
0
        public Task <Checkpoint> GetCheckpointAsync(string checkpointName)
        {
            var blob = _Container.GetBlockBlobReference("Checkpoints/" + GetSetPart(checkpointName));

            return(Checkpoint.LoadBlobAsync(blob, _Network));
        }
예제 #2
0
        /// <summary>
        /// Determines the block that a checkpoint is at.
        /// </summary>
        /// <param name="indexerCheckpoints">The type of checkpoint (wallets, blocks, transactions or balances).</param>
        /// <returns>The block that a checkpoint is at.</returns>
        private ChainedBlock GetCheckPointBlock(IndexerCheckpoints indexerCheckpoints)
        {
            Checkpoint checkpoint = this.AzureIndexer.GetCheckpointInternal(indexerCheckpoints);

            return(this.Chain.FindFork(checkpoint.BlockLocator));
        }