Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix: keep BTreeMap for SignersContainer #229

Merged
merged 5 commits into from
Dec 16, 2020

Conversation

eupn
Copy link
Contributor

@eupn eupn commented Dec 15, 2020

Description

This is a follow-up to #224 when we decided that while the main cause of bug is fixed, it's better to try to keep the BTreeMap as a primary data structure for the container.

This PR reverts some commits from the previous one, but keeps the unit tests and adds fix to the find function.

Notes to the reviewers

The fix to the find function introduced in commit c58236f may not be the best one. Is there a better way?

Checklists

All Submissions:

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

Bugfixes:

  • This pull request breaks the existing API (only when relied upon SignersContainer::find function)
  • I've added tests to reproduce the issue which are now passing
  • I'm linking the issue being fixed by this PR

src/wallet/signer.rs Outdated Show resolved Hide resolved
@eupn eupn requested a review from afilini December 15, 2020 15:48
Copy link
Member

@afilini afilini left a comment

Choose a reason for hiding this comment

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

ACK 09730c0

@afilini afilini merged commit 931a110 into bitcoindevkit:master Dec 16, 2020
@eupn eupn deleted the fix-signer-container-btreemap branch July 3, 2021 07:35
nickfarrow pushed a commit to nickfarrow/bdk that referenced this pull request Feb 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants