BitSharp.Esent.EsentBlockTxesStorage.TryReadBlockTransactions C# (CSharp) Метод

TryReadBlockTransactions() публичный Метод

public TryReadBlockTransactions ( UInt256 blockHash, IEnumerator &blockTxes ) : bool
blockHash UInt256
blockTxes IEnumerator
Результат bool
        public bool TryReadBlockTransactions(UInt256 blockHash, out IEnumerator<BlockTx> blockTxes)
        {
            if (this.ContainsBlock(blockHash))
            {
                blockTxes = ReadBlockTransactions(blockHash, requireTx: true)
                    .UsingAsEnumerable().Select(x => x.ToBlockTx()).GetEnumerator();
                return true;
            }
            else
            {
                blockTxes = null;
                return false;
            }
        }