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 bitcoin-core/gui#441: Add Create Unsigned button to SendConfirmationDialog
BACKPORT NOTE:
Formatting in src/qt/optionsmodel.h has been changed in bitcoin#3267.
These changes has not been backported on time; done with this backport
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#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
// TODO: re-enable it when external signer will be backported
372
+
// if (model->wallet().privateKeysDisabled() && !model->wallet().hasExternalSigner()) {
373
+
constbool external_signer_available{false};
374
+
if (external_signer_available) {
375
+
/*: Text to inform a user attempting to create a transaction of their current options. At this stage,
376
+
a user can only create a PSBT. This string is displayed when private keys are disabled and an external
377
+
signer is not available. */
378
+
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,
381
+
a user can send their transaction or create a PSBT. This string is displayed when both private keys
382
+
and PSBT controls are enabled. */
383
+
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));
371
384
} else {
372
-
question_string.append(tr("Are you sure you want to send?"));
question_string.append(tr("This will produce a Partially Signed 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));
377
-
question_string.append("</span>");
385
+
/*: Text to prompt a user to review the details of the transaction they are attempting to send. */
386
+
question_string.append(tr("Please, review your transaction."));
0 commit comments