Example #1
0
        public BlockHandle GetUncommittedBlock(UncommittedBlockId blockUcid)
        {
            var returnCode = PInvokes.cashdb_utxo_get_uncommitted_block(
                _connection, ref blockUcid, out BlockHandle handle);

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

            return(handle);
        }