Skip to content

test: Move test_chain_listunspent wallet check from mempool_packages to wallet_basic - #27735

Merged
fanquake merged 1 commit into
bitcoin:masterfrom
maflcko:2305-mempool-legacy-wallet-
May 26, 2023
Merged

fanquake merged 1 commit into
bitcoin:masterfrom
maflcko:2305-mempool-legacy-wallet-

Conversation

@maflcko

@maflcko maflcko commented May 24, 2023 •

Copy link
Copy Markdown
Member

This fixes a bug.

On master:

$ ./test/functional/mempool_packages.py  --legacy-wallet 
  File "./test/functional/mempool_packages.py", line 52, in run_test
    self.nodes[0].importaddress(self.wallet.get_address())
test_framework.authproxy.JSONRPCException: Bech32m addresses cannot be imported into legacy wallets (-5)

On this pull, all tests pass.

@DrahtBot

DrahtBot commented May 24, 2023 •

Copy link
Copy Markdown
Contributor

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK glozow

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #20892 (tests: Run both descriptor and legacy tests within a single test invocation by achow101)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

@DrahtBot DrahtBot added the Tests label May 24, 2023
@maflcko

maflcko commented May 24, 2023

Copy link
Copy Markdown
Member Author

(An alternative to test this would be to compile with bdb only)

Godonzrepublic

This comment was marked as spam.

@bitcoin bitcoin deleted a comment from Godonzrepublic May 24, 2023
@achow101

Copy link
Copy Markdown
Member

Is there a reason that this test needs the wallet in the first place?

@maflcko

maflcko commented May 25, 2023

Copy link
Copy Markdown
Member Author

Yeah, the test doesn't need the wallet, but it is providing mempool-package coverage for the listunspent wallet RPC. So maybe an alternative would be to move it out into a new test, idk?

@fanquake

Copy link
Copy Markdown
Member

cc @glozow

@glozow

glozow commented May 25, 2023

Copy link
Copy Markdown
Contributor

Yeah, the test doesn't need the wallet, but it is providing mempool-package coverage for the listunspent wallet RPC. So maybe an alternative would be to move it out into a new test, idk?

Would be in favor of moving the listunspent coverage to a new/existing wallet_ functional test instead.

@maflcko maflcko changed the title test: Disable legacy wallet for mempool_packages.py test: Move test_chain_listunspent wallet check from mempool_packages to wallet_basic May 26, 2023
@DrahtBot DrahtBot changed the title test: Move test_chain_listunspent wallet check from mempool_packages to wallet_basic test: Move test_chain_listunspent wallet check from mempool_packages to wallet_basic May 26, 2023
@maflcko
maflcko force-pushed the 2305-mempool-legacy-wallet- branch from fa95970 to fa62442 Compare May 26, 2023 06:57
@maflcko
maflcko force-pushed the 2305-mempool-legacy-wallet- branch from fa62442 to ffffe62 Compare May 26, 2023 07:03
@maflcko

maflcko commented May 26, 2023

Copy link
Copy Markdown
Member Author

Thx, done

@glozow glozow left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ACK ffffe62, thanks for changing! Nice to remove wallet from another non-wallet test.

@fanquake
fanquake merged commit 7794d9d into bitcoin:master May 26, 2023
@maflcko
maflcko deleted the 2305-mempool-legacy-wallet- branch May 26, 2023 14:01
@bitcoin bitcoin locked and limited conversation to collaborators May 25, 2024
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.

6 participants