mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
Merge b94061902e into merged_master (Bitcoin PR bitcoin/bitcoin#812)
This commit is contained in:
commit
f0589fa4ff
1 changed files with 6 additions and 7 deletions
|
|
@ -569,12 +569,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
|
||||
|
|
@ -589,10 +583,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
Add a link
Reference in a new issue