Skip to content

test: interface_bitcoin_cli.py: check specified wallet type availability - #23712

Merged
maflcko merged 1 commit into
bitcoin:masterfrom
theStack:2021-test-check-proper-wallet-in-interface_bitcoin_cli
Dec 8, 2021
Merged

maflcko merged 1 commit into
bitcoin:masterfrom
theStack:2021-test-check-proper-wallet-in-interface_bitcoin_cli

Conversation

@theStack

@theStack theStack commented Dec 8, 2021

Copy link
Copy Markdown
Contributor

Currently the test interface_bitcoin_cli.py performs the wallet-relevant parts if any wallet type support is compiled in, independently of
whether the test is run with legacy or descriptor wallet specified. This leads to a failure if the test is started with the --legacy-wallet parameter, but bitcoind is compiled without BDB support, see e.g
#23686 (comment)

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

Should further pave the way for #23682.

Currently the test performs the wallet-relevant parts if
_any_ wallet type support is compiled in, independently of
whether the test is run with legacy or descriptor wallet
specified. This leads to a failure if the test is 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.
@maflcko
maflcko requested a review from achow101 December 8, 2021 16:49
@achow101

achow101 commented Dec 8, 2021

Copy link
Copy Markdown
Member

ACK b57bf25

@laanwj laanwj added the Tests label Dec 8, 2021

@maflcko maflcko left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the fix

@maflcko
maflcko merged commit f727d81 into bitcoin:master Dec 8, 2021
@theStack
theStack deleted the 2021-test-check-proper-wallet-in-interface_bitcoin_cli branch December 8, 2021 17:37
RandyMcMillan pushed a commit to RandyMcMillan/mempool-tab that referenced this pull request Dec 23, 2021
…ecified wallet type availability

3e63dbc test: interface_bitcoin_cli.py: check specified wallet type availability (Sebastian Falbesoner)

Pull request description:

  Currently the test `interface_bitcoin_cli.py` performs the wallet-relevant parts if _any_ wallet type support is compiled in, independently of
  whether the test is run with legacy or descriptor wallet specified. This leads to a failure if the test is started with the `--legacy-wallet` parameter, but bitcoind is compiled without BDB support, see e.g
   bitcoin/bitcoin#23686 (comment)

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

  Should further pave the way for #23682.

ACKs for top commit:
  achow101:
    ACK 3e63dbc

Tree-SHA512: ddb5a94ba61133eff8de79d4946b3b9d476232b26e83bf768894cac4691e72602f88b6c02c72b992e12c2feb9bff1f0a2e0a265948a00954311104add1347184
@bitcoin bitcoin locked and limited conversation to collaborators Dec 8, 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