Example #1
0
        public BlockHandle GetCommittedBlock(CommittedBlockId blockId)
        {
            var returnCode = PInvokes.cashdb_utxo_get_committed_block(
                _connection, ref blockId, out BlockHandle handle);

            if (returnCode != ReturnCode.SUCCESS)
            {
                throw new CashDBException("GetCommittedBlock failed.", returnCode);
            }

            return(handle);
        }