Skip to content

Conversation

BrandonOdiwuor
Copy link
Contributor

Fixes #28601, see #28403 (comment)

Add Context Manager to manage the locking and unlocking of locked wallets with a passphrase during testing.

@DrahtBot
Copy link
Contributor

DrahtBot commented Oct 9, 2023

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

Code Coverage

For detailed information about the code coverage, see the test coverage report.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK kevkevinpal, maflcko

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:

  • #28528 (test: Use test framework utils in functional tests by osagie98)

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 Oct 9, 2023
@BrandonOdiwuor BrandonOdiwuor force-pushed the wallet-unlock-context-manager branch from a6bded9 to a3e3d3c Compare October 10, 2023 11:11
Copy link
Member

@maflcko maflcko left a comment

Choose a reason for hiding this comment

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

I think there is one more that can be using the context:

test/functional/wallet_fundrawtransaction.py:        wallet.walletpassphrase("test", 999000)

@BrandonOdiwuor BrandonOdiwuor force-pushed the wallet-unlock-context-manager branch 2 times, most recently from a0c1822 to c633551 Compare October 10, 2023 12:59
Add Context Manager to manage wallet locking/unlocking with passphrase
@BrandonOdiwuor BrandonOdiwuor force-pushed the wallet-unlock-context-manager branch from c633551 to 004903e Compare October 10, 2023 15:13
@BrandonOdiwuor
Copy link
Contributor Author

@maflcko could you please review the changes

@kevkevinpal
Copy link
Contributor

lgtm ACK 004903e

@maflcko
Copy link
Member

maflcko commented Oct 19, 2023

lgtm ACK 004903e

@DrahtBot DrahtBot removed the request for review from maflcko October 19, 2023 08:39
@maflcko maflcko added this to the 26.0 milestone Oct 19, 2023
@fanquake fanquake merged commit 091d29c into bitcoin:master Oct 19, 2023
Frank-GER pushed a commit to syscoin/syscoin that referenced this pull request Oct 21, 2023
@kashifs
Copy link
Contributor

kashifs commented Oct 22, 2023

Hey @BrandonOdiwuor, nice work on these changes. I know that this PR has been closed, but I finally finished my review of all the files. Apologies for the delay. I'm trying to get up to speed and have to work very slowly at the moment. I learned a ton from your work and have already gotten some value from the code review, but I'm not sure of the best way to contribute these changes. They can be found here:

master...kashifs:bitcoin:master

Please let me know what you think. Thanks!

@BrandonOdiwuor BrandonOdiwuor deleted the wallet-unlock-context-manager branch November 21, 2023 09:37
@bitcoin bitcoin locked and limited conversation to collaborators Nov 20, 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.

test: unlocked wallet context manager
6 participants