From: Daniela Brozzoni Date: Wed, 24 Aug 2022 20:40:21 +0000 (+0100) Subject: Fix compilation error when using memory database X-Git-Tag: v0.6.0~8^2 X-Git-Url: http://internal-gitweb-vhost/script/%22https:/-sqlite-db-configuration/struct.EncoderWriter.html?a=commitdiff_plain;h=faa461d3fc8d20cc033859555017792017e87461;p=bdk-cli Fix compilation error when using memory database This commit also adds the testing for memory database and key value database in CI --- diff --git a/.github/workflows/cont_integration.yml b/.github/workflows/cont_integration.yml index 935b730..133bb28 100644 --- a/.github/workflows/cont_integration.yml +++ b/.github/workflows/cont_integration.yml @@ -14,17 +14,19 @@ jobs: - 1.56.0 # MSRV features: - default + - electrum,sqlite-db + - electrum,key-value-db - electrum - - esplora-ureq - - esplora-reqwest - - compiler - - compact_filters - - rpc - - reserves,electrum - - electrum,verify + - esplora-ureq,sqlite-db + - esplora-reqwest,sqlite-db + - compiler,sqlite-db + - compact_filters,sqlite-db + - rpc,sqlite-db + - reserves,electrum,sqlite-db + - electrum,verify,sqlite-db # regtest-* features are experimental and not fully usable - - regtest-bitcoin - - regtest-electrum + - regtest-bitcoin,sqlite-db + - regtest-electrum,sqlite-db steps: - name: Checkout @@ -47,11 +49,11 @@ jobs: override: true components: rustfmt, clippy - name: Build - run: cargo build --features ${{ matrix.features }} --locked + run: cargo build --no-default-features --features repl,${{ matrix.features }} --locked - name: Clippy run: cargo clippy -- -D warnings - name: Test - run: cargo test --features ${{ matrix.features }} + run: cargo test --no-default-features --features repl,${{ matrix.features }} fmt: name: Rust fmt diff --git a/src/utils.rs b/src/utils.rs index a8fb857..12e5d9c 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -183,6 +183,9 @@ pub(crate) fn open_database(wallet_opts: &WalletOpts) -> Result