Create() public static method

public static Create ( int txIndex, DecodedTx tx ) : DecodedBlockTx
txIndex int
tx DecodedTx
return DecodedBlockTx
Beispiel #1
0
        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));
        }