mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 02:33:24 -03:00
gui: fix create unsigned transaction fee bump
This commit is contained in:
parent
4373414d26
commit
671b7a3251
1 changed files with 6 additions and 7 deletions
|
@ -529,12 +529,6 @@ bool WalletModel::bumpFee(uint256 hash, uint256& new_hash)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
WalletModel::UnlockContext ctx(requestUnlock());
|
|
||||||
if(!ctx.isValid())
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Short-circuit if we are returning a bumped transaction PSBT to clipboard
|
// Short-circuit if we are returning a bumped transaction PSBT to clipboard
|
||||||
if (retval == QMessageBox::Save) {
|
if (retval == QMessageBox::Save) {
|
||||||
// "Create Unsigned" clicked
|
// "Create Unsigned" clicked
|
||||||
|
@ -549,10 +543,15 @@ bool WalletModel::bumpFee(uint256 hash, uint256& new_hash)
|
||||||
DataStream ssTx{};
|
DataStream ssTx{};
|
||||||
ssTx << psbtx;
|
ssTx << psbtx;
|
||||||
GUIUtil::setClipboard(EncodeBase64(ssTx.str()).c_str());
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
WalletModel::UnlockContext ctx(requestUnlock());
|
||||||
|
if (!ctx.isValid()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
assert(!m_wallet->privateKeysDisabled() || wallet().hasExternalSigner());
|
assert(!m_wallet->privateKeysDisabled() || wallet().hasExternalSigner());
|
||||||
|
|
||||||
// sign bumped transaction
|
// sign bumped transaction
|
||||||
|
|
Loading…
Add table
Reference in a new issue