You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge #441: Add Create Unsigned button to SendConfirmationDialog
742918c qt: hide Create Unsigned button behind an expert mode option (Andrew Chow)
5c3b800 qt: Add Create Unsigned button to SendConfirmationDialog (Andrew Chow)
Pull request description:
Instead of having different buttons or changing button behavior for making a PSBT, just have SendConfirmationDialog return whether the user wants a PSBT or a broadcasted transaction. Since this dialog is used by both the bumpFeeAction and the SendCoinsDialog, changes to both to support the different behavior is needed. They will check the return value of the SendConfirmationDialog for whether a PSBT needs to be created instead of checking whether private keys are disabled.
Strings used in this dialog are being slightly modified to work with both private keys enabled and disabled wallets.
Moved from bitcoin/bitcoin#18789
ACKs for top commit:
jarolrod:
ACK 742918c
ryanofsky:
Code review ACK 742918c. Just suggested changes since last review. Looks great!
hebasto:
ACK 742918c, tested on Linux Mint 20.2 (Qt 5.12.8).
Tree-SHA512: dd29f4364c7b4f15befe8fe63257b26187918786b005e0f8336183270b1a162680b93f6ced60f0285c6e607c084cc0d24950fc68a8f9c056521ede614041be66
if (model->wallet().privateKeysDisabled() && !model->wallet().hasExternalSigner()) {
332
+
/*: Text to inform a user attempting to create a transaction of their current options. At this stage,
333
+
a user can only create a PSBT. This string is displayed when private keys are disabled and an external
334
+
signer is not available. */
335
335
question_string.append(tr("Please, review your transaction proposal. This will produce a Partially Signed Bitcoin Transaction (PSBT) which you can save or copy and then sign with e.g. an offline %1 wallet, or a PSBT-compatible hardware wallet.").arg(PACKAGE_NAME));
/*: Text to inform a user attempting to create a transaction of their current options. At this stage,
338
+
a user can send their transaction or create a PSBT. This string is displayed when both private keys
339
+
and PSBT controls are enabled. */
340
+
question_string.append(tr("Please, review your transaction. You can create and send this transaction or create a Partially Signed Bitcoin Transaction (PSBT), which you can save or copy and then sign with, e.g., an offline %1 wallet, or a PSBT-compatible hardware wallet.").arg(PACKAGE_NAME));
336
341
} else {
342
+
/*: Text to prompt a user to review the details of the transaction they are attempting to send. */
337
343
question_string.append(tr("Please, review your transaction."));
questionString.append(tr("Warning: This may pay the additional fee by reducing change outputs or adding inputs, when necessary. It may add a new change output if one does not already exist. These changes may potentially leak privacy."));
507
506
}
508
507
509
-
auto confirmationDialog = newSendConfirmationDialog(tr("Confirm fee bump"), questionString);
0 commit comments