コード例 #1
0
        public static Block GetBlock(this IPersistence persistence, uint index)
        {
            UInt256 hash = Blockchain.Singleton.GetBlockHash(index);

            if (hash == null)
            {
                return(null);
            }
            return(persistence.GetBlock(hash));
        }