/// <summary>
        /// Get BlockChain Statistics for the current node the explorer is inspecting
        /// </summary>
        /// <returns></returns>
        public ActionResult GetStats()
        {
            BlockChainStatistics bcs = new BlockChainStatistics();

            bcs = bcs.Get();

            return(View("Parts/_BlockChainStats", bcs));
        }
示例#2
0
        /// <summary>
        /// Get current statistics of the BlockChain
        /// </summary>
        /// <returns></returns>
        public BlockChainStatistics Get()
        {
            Blocks b = new Blocks();
            Assets a = new LucidOcean.MultiChain.Explorer.Assets();

            Transactions t = new LucidOcean.MultiChain.Explorer.Transactions();

            BlockChainStatistics bcs = new BlockChainStatistics();

            bcs.Blocks       = b.GetBlockCount();
            bcs.Assets       = a.GetAssetCount();
            bcs.Transactions = t.GetTransactionCount();
            bcs.Streams      = 0;
            return(bcs);
        }