Skip to content

test: feature_rbf.py: check specified wallet type availability - #23715

Merged
maflcko merged 1 commit into
bitcoin:masterfrom
theStack:202112-test-check-feature_rbf-wallet-availability
Dec 9, 2021
Merged

maflcko merged 1 commit into
bitcoin:masterfrom
theStack:202112-test-check-feature_rbf-wallet-availability

Conversation

@theStack

@theStack theStack commented Dec 8, 2021

Copy link
Copy Markdown
Contributor

The test currently leads to a failure if in general wallet support is compiled, but the library for the specified type (BDB/SQLite) is not, i.e. if started with the --legacy-wallet parameter, but bitcoind is compiled without BDB support, see e.g. #23682 (comment)

Fix this by checking if the specified wallet type (BDB for legacy wallet, SQLite for descriptor wallet) is available.

Also move the helper is_specified_wallet_compiled() to the
test framework's class BitcoinTestFramework first, so it can be reused.

Should further pave the way for #23682. On my local instance without BDB compiled, all targets in test_runner pass now.

The test currently leads to a failure if in general wallet
support is compiled, but the library for the specified type
(BDB/SQLite) is not, i.e.  if started with the
`--legacy-wallet` parameter, but bitcoind is compiled
without BDB support.

Fix this by checking if the specified wallet type (BDB for
legacy wallet, SQLite for descriptor wallet) is available.

Also move the helper `is_specified_wallet_compiled()` to the
test framework's class BitcoinTestFramework first, so it can
be reused.
@DrahtBot DrahtBot added the Tests label Dec 8, 2021
@mzumsande

Copy link
Copy Markdown
Contributor

ACK 84bc35d, changes loook good for me and I confirmed that this fixes the error encountered on master when running the test --without-bdb.

Should further pave the way for #23682. On my local instance without BDB compiled, all targets in test_runner pass now.

For me, feature_coinstatsindex.py still fails locally.

@maflcko
maflcko merged commit 529ed33 into bitcoin:master Dec 9, 2021
@theStack
theStack deleted the 202112-test-check-feature_rbf-wallet-availability branch December 9, 2021 11:18
RandyMcMillan pushed a commit to RandyMcMillan/mempool-tab that referenced this pull request Dec 23, 2021
…llet type availability

0e18674 test: feature_rbf.py: check specified wallet type availability (Sebastian Falbesoner)

Pull request description:

  The test currently leads to a failure if in general wallet support is compiled, but the library for the specified type (BDB/SQLite) is not, i.e.  if started with the `--legacy-wallet` parameter, but bitcoind is compiled without BDB support, see e.g. bitcoin/bitcoin#23682 (comment)

  Fix this by checking if the specified wallet type (BDB for legacy wallet, SQLite for descriptor wallet) is available.

  Also move the helper `is_specified_wallet_compiled()` to the
  test framework's class BitcoinTestFramework first, so it can be reused.

  Should further pave the way for #23682. On my local instance without BDB compiled, all targets in test_runner pass now.

ACKs for top commit:
  mzumsande:
    ACK 0e18674, changes loook good for me and I confirmed that this fixes the error encountered on master when running the test `--without-bdb`.

Tree-SHA512: 1575c03c793c8e0ac195d0914eff75d02604301c8fb77d0fdb7c0b245561569c0c7db387ef4de499044b68ab6e14b4b78b955f6e74c84197bcaed95f439c9824
@bitcoin bitcoin locked and limited conversation to collaborators Dec 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants