示例#1
0
        public async Task <Chain> CreateChainAsync(Block block, IEnumerable <Transaction> transactions)
        {
            await AddTransactionsAsync(transactions);
            await AddBlockAsync(block);

            return(await _chainManager.CreateAsync(block.GetHash()));
        }
示例#2
0
        public async Task <Chain> CreateChainAsync(Block block)
        {
            await AddBlockAsync(block);

            var chain = await _chainManager.CreateAsync(block.GetHash());

            return(chain);
        }