示例#1
0
        public void Add(IBlock block)
        {
            var lastBlock = Itens.LastOrDefault();

            if (lastBlock != null)
            {
                block.PreviousHash = lastBlock.Hash;
            }

            block.Hash = block.MineHash(Difficulty);
            Itens.Add(block);
        }