public async Task <Chain> CreateChainAsync(Block block, IEnumerable <Transaction> transactions) { await AddTransactionsAsync(transactions); await AddBlockAsync(block); return(await _chainManager.CreateAsync(block.GetHash())); }
public async Task <Chain> CreateChainAsync(Block block) { await AddBlockAsync(block); var chain = await _chainManager.CreateAsync(block.GetHash()); return(chain); }