mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-21 14:34:49 +01:00
Merge bitcoin-core/gui#812: Fix create unsigned transaction fee bump
671b7a3251
gui: fix create unsigned transaction fee bump (furszy) Pull request description: Fixes #810. Not much to explain; we were requiring the wallet to be unlocked for the unsigned transaction creation process. Fix this by moving the unlock wallet request to the signed transaction creation process. ACKs for top commit: pablomartin4btc: tACK671b7a3251
hebasto: ACK671b7a3251
, tested on Ubuntu 24.04. Tree-SHA512: 5b9ec5a1b91c014c05c83c63daaa8ba33f9dc1bfa930442315a0913db710df17a1b6bb4ad39f1419a7054f37ebedb7ad52e1c5d3d2fb444b1676162e89a4efd2
This commit is contained in:
commit
b94061902e
1 changed files with 6 additions and 7 deletions
|
@ -529,12 +529,6 @@ bool WalletModel::bumpFee(uint256 hash, uint256& new_hash)
|
|||
return false;
|
||||
}
|
||||
|
||||
WalletModel::UnlockContext ctx(requestUnlock());
|
||||
if(!ctx.isValid())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// Short-circuit if we are returning a bumped transaction PSBT to clipboard
|
||||
if (retval == QMessageBox::Save) {
|
||||
// "Create Unsigned" clicked
|
||||
|
@ -549,10 +543,15 @@ bool WalletModel::bumpFee(uint256 hash, uint256& new_hash)
|
|||
DataStream ssTx{};
|
||||
ssTx << psbtx;
|
||||
GUIUtil::setClipboard(EncodeBase64(ssTx.str()).c_str());
|
||||
Q_EMIT message(tr("PSBT copied"), tr("Copied to clipboard", "Fee-bump PSBT saved"), CClientUIInterface::MSG_INFORMATION);
|
||||
Q_EMIT message(tr("PSBT copied"), tr("Fee-bump PSBT copied to clipboard"), CClientUIInterface::MSG_INFORMATION | CClientUIInterface::MODAL);
|
||||
return true;
|
||||
}
|
||||
|
||||
WalletModel::UnlockContext ctx(requestUnlock());
|
||||
if (!ctx.isValid()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
assert(!m_wallet->privateKeysDisabled() || wallet().hasExternalSigner());
|
||||
|
||||
// sign bumped transaction
|
||||
|
|
Loading…
Add table
Reference in a new issue