Create() 공개 정적인 메소드

public static Create ( int txIndex, DecodedTx tx ) : DecodedBlockTx
txIndex int
tx DecodedTx
리턴 DecodedBlockTx
예제 #1
0
파일: Block.cs 프로젝트: yonglehou/BitSharp
        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));
        }