public static Block Create(BlockHeader header, ImmutableArray <Transaction> transactions) { var blockTxes = ImmutableArray.CreateRange(transactions.Select((tx, txIndex) => (BlockTx)BlockTx.Create(txIndex, tx))); return(new Block(header, blockTxes)); }