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 #16944: gui: create PSBT with watch-only wallet
c6dd565 [gui] watch-only wallet: copy PSBT to clipboard (Sjors Provoost)
39465d5 [wallet] add fillPSBT to interface (Sjors Provoost)
848f889 [gui] send: include watch-only (Sjors Provoost)
40537f0 [wallet] ListCoins: include watch-only for wallets without private keys (Sjors Provoost)
Pull request description:
For wallets with `WALLET_FLAG_DISABLE_PRIVATE_KEYS` this makes the watch-only balance available on the send screen (including coin selection). Instead of sending a transaction it generates a PSBT.
The user can take this PSBT and process it with [HWI](https://github.com/bitcoin-core/HWI) or put it an SD card for hardware wallets that support that.
The PSBT is copied to the clipboard. This was the easiest approach; we can add a dialog later to display it, as well as an option to save to disk.
ACKs for top commit:
instagibbs:
test and code review ACK bitcoin/bitcoin@c6dd565
meshcollider:
re-ACK c6dd565
Tree-SHA512: ebc3da0737e33b255ed926191b84569aedb6097d14868662bd5dce726ce3048e86e9a31eba987b10dffe1482b35c21ae1cd595c2caa4634bc4cf78a826a83852
ui->sendButton->setToolTip(tr("Creates a Partially Signed Bitcoin Transaction (PSBT) for use with e.g. an offline %1 wallet, or a PSBT-compatible hardware wallet.").arg(PACKAGE_NAME));
193
+
}
194
+
189
195
// set the smartfee-sliders default value (wallets default conf.target or last stored value)
190
196
QSettings settings;
191
197
if (settings.value("nSmartFeeSliderPosition").toInt() != 0) {
questionString.append(tr("Please, review your transaction."));
322
+
if (model->privateKeysDisabled()) {
323
+
questionString.append(tr("Please, review your transaction proposal. This will produce a Partially Signed Bitcoin Transaction (PSBT) which you can copy and then sign with e.g. an offline %1 wallet, or a PSBT-compatible hardware wallet.").arg(PACKAGE_NAME));
324
+
} else {
325
+
questionString.append(tr("Please, review your transaction."));
0 commit comments