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

chore(examples): make change descriptor optional on example_wallet_rpc #1865

Conversation

luisschwab
Copy link
Contributor

@luisschwab luisschwab commented Mar 2, 2025

Description

This PR makes passing a CHANGE_DESCRIPTOR optional on example_wallet_rpc, as per #1533.

Notes to the reviewers

Before instantiating a Wallet it checks if args.change_descriptor is Some. If true calls Wallet::create, else calls Wallet::create_single.

All Submissions:

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

@luisschwab
Copy link
Contributor Author

luisschwab commented Mar 2, 2025

CI failures are unrelated.

Not sure about doing the same for the other examples as they require no interaction and have both descriptors hard-coded.

@luisschwab luisschwab force-pushed the chore/optional-change-descriptor-on-example branch from ea55d4c to e81e048 Compare March 6, 2025 14:29
@luisschwab luisschwab changed the title chore: make change descriptor optional on example_wallet_rpc chore(examples): make change descriptor optional on example_wallet_rpc Mar 6, 2025
@notmandatory notmandatory added the documentation Improvements or additions to documentation label Mar 6, 2025
@notmandatory notmandatory added this to the 1.2.0 milestone Mar 6, 2025
Copy link
Member

@notmandatory notmandatory left a comment

Choose a reason for hiding this comment

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

ACK e81e048

Copy link
Contributor

@oleonardolima oleonardolima left a comment

Choose a reason for hiding this comment

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

tACK e81e048

@luisschwab luisschwab force-pushed the chore/optional-change-descriptor-on-example branch from e81e048 to 449576b Compare March 7, 2025 00:33
@ValuedMammal
Copy link
Contributor

Sorry @luisschwab, wasn't expecting to get blocked again by CI.

@luisschwab luisschwab force-pushed the chore/optional-change-descriptor-on-example branch from 449576b to f7e49e6 Compare March 7, 2025 01:04
@luisschwab
Copy link
Contributor Author

I guess this will have to wait until we bump to 1.75.0

@evanlinjin
Copy link
Member

@luisschwab CI should be fixed

@luisschwab luisschwab force-pushed the chore/optional-change-descriptor-on-example branch from f7e49e6 to 78ca4b0 Compare March 7, 2025 10:40
@luisschwab
Copy link
Contributor Author

@ValuedMammal CI is passing again

Copy link
Contributor

@ValuedMammal ValuedMammal left a comment

Choose a reason for hiding this comment

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

ACK 78ca4b0

@ValuedMammal ValuedMammal merged commit 63e62b4 into bitcoindevkit:master Mar 7, 2025
23 checks passed
@luisschwab luisschwab deleted the chore/optional-change-descriptor-on-example branch March 10, 2025 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants