Skip to content

Fix duplicate wallet creation in non-persistent path#233

Merged
tvpeter merged 1 commit intobitcoindevkit:masterfrom
Mshehu5:double_wallet
Jan 5, 2026
Merged

Fix duplicate wallet creation in non-persistent path#233
tvpeter merged 1 commit intobitcoindevkit:masterfrom
Mshehu5:double_wallet

Conversation

@Mshehu5
Copy link
Contributor

@Mshehu5 Mshehu5 commented Jan 1, 2026

Description

The non-persistent wallet path (when sqlite/redb features are disabled) was creating the wallet twice: first as immutable to create the blockchain_client, then again as mutable. This caused the blockchain_client to be initialized with the first wallet instance, but then used with the second wallet instance, creating a mismatch.

All Submissions:

  • I've signed all my commits
  • I followed the contribution guidelines
  • I ran cargo fmt and cargo clippy before committing

Bugfixes:

Copy link
Contributor

@110CodingP 110CodingP left a comment

Choose a reason for hiding this comment

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

Nice catch! ACK 63939ab

@tvpeter tvpeter assigned tvpeter and Mshehu5 and unassigned tvpeter Jan 5, 2026
@coveralls
Copy link

coveralls commented Jan 5, 2026

Pull Request Test Coverage Report for Build 20714192688

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 7.901%

Totals Coverage Status
Change from base Build 20377635666: 0.0%
Covered Lines: 172
Relevant Lines: 2177

💛 - Coveralls

Copy link
Collaborator

@tvpeter tvpeter left a comment

Choose a reason for hiding this comment

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

Thank you @Mshehu5 for the fix

ACK 63939ab

@tvpeter
Copy link
Collaborator

tvpeter commented Jan 5, 2026

@Mshehu5, please sign your commits so the PR can be merged.

The non-persistent wallet path (when sqlite/redb features are
disabled) was creating the wallet twice: first as immutable to
create the blockchain_client, then again as mutable. This caused
the blockchain_client to be initialized with the first wallet
instance, but then used with the second wallet instance, creating
a mismatch.
@Mshehu5
Copy link
Contributor Author

Mshehu5 commented Jan 5, 2026

@Mshehu5, please sign your commits so the PR can be merged.

just signed it now

Copy link
Collaborator

@tvpeter tvpeter left a comment

Choose a reason for hiding this comment

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

ACK ba5e349

@tvpeter tvpeter merged commit fb7f6c6 into bitcoindevkit:master Jan 5, 2026
5 checks passed
@github-project-automation github-project-automation bot moved this to Done in BDK-CLI Jan 5, 2026
@tvpeter tvpeter added this to the CLI 3.0.0 milestone Feb 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants