-
Notifications
You must be signed in to change notification settings - Fork 37.7k
rpc: gui: Don't change behavior based on private keys disabled, instead add new buttons/rpcs/menu items #18627
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
Conversation
This commit does not change behavior.
So it can be used in the GUI.
co-authored-by: Glenn Willen <gwillen@nerdnet.org>
co-authored-by: Glenn Willen <gwillen@nerdnet.org>
Instead of changing Send to make an unsigned tx for wallets with private keys disabled, have a separate button for that functionality and disable Send for such wallets.
Instead of changing GUI bumpfee behavior based on private keys, make a separate menu action to do that.
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, this pull request conflicts with the following ones:
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. |
concept and light GUI tACK 11f2521
|
Concept ACK |
With psbtbumpfee, we can deprecate bumpfee's psbt creation behavior. So put that behind a -deprecatedrpc
11f2521
to
55436f3
Compare
Concept ACK |
…tbumpfee 79d6332 moveonly: Fix indentation in bumpfee RPC (Andrew Chow) 431071c Hide bumpfee's psbt creation behavior behind -deprecatedrpc (Andrew Chow) 4638224 Add psbtbumpfee RPC (Andrew Chow) Pull request description: Adds a new RPC `psbtbumpfee` which always creates a psbt. `bumpfee` will then only be able to create and broadcast fee bumping transactions instead of changing its behavior based on `IsWalletSet(WALLET_FLAG_DISABLE_PRIVATE_KEYS)`. Split from #18627 ACKs for top commit: Sjors: re-utACK 79d6332 meshcollider: utACK 79d6332 fjahr: Code review ACK 79d6332 Tree-SHA512: 1c92c4b4461bb30e78be3ee73165f624398ef33996ce36043b61a8931be667030d0fca12fd0b30097b78c56e4e9092c69582b237cbdac51d56f6be23d8c0f1bb
…nto psbtbumpfee 79d6332 moveonly: Fix indentation in bumpfee RPC (Andrew Chow) 431071c Hide bumpfee's psbt creation behavior behind -deprecatedrpc (Andrew Chow) 4638224 Add psbtbumpfee RPC (Andrew Chow) Pull request description: Adds a new RPC `psbtbumpfee` which always creates a psbt. `bumpfee` will then only be able to create and broadcast fee bumping transactions instead of changing its behavior based on `IsWalletSet(WALLET_FLAG_DISABLE_PRIVATE_KEYS)`. Split from bitcoin#18627 ACKs for top commit: Sjors: re-utACK 79d6332 meshcollider: utACK 79d6332 fjahr: Code review ACK 79d6332 Tree-SHA512: 1c92c4b4461bb30e78be3ee73165f624398ef33996ce36043b61a8931be667030d0fca12fd0b30097b78c56e4e9092c69582b237cbdac51d56f6be23d8c0f1bb
Instead of changing some actions' behavior based on
IsWalletFlagSet(WALLET_FLAG_DISABLE_PRIVATE_KEYS)
, make separate things that work with no private keys. In particular, instead of havingbumpfee
give out a psbt when there are no private keys, add apsbtbumpfee
RPC that always gives out a psbt and just havebumpfee
be disabled when there are no private keys. This is mirrored in the GUI bumpfee menu items. Additionally, instead of changing theSend
button toCreate Unsigned
when there are no private keys, just always have aCreate Unsigned
button and disableSend
when there are no private keys. To deal withbumpfee
already doing the mutated behavior thing, that behavior is hidden behind a-deprecatedrpc=bumpfee
option.To make the GUI stuff easier to follow, test, and review, this is being based on #17509