diff options
author | Sjors Provoost <sjors@sprovoost.nl> | 2022-02-21 13:16:05 +0100 |
---|---|---|
committer | Sjors Provoost <sjors@sprovoost.nl> | 2022-03-16 10:28:37 +0100 |
commit | 4b5a6cd14967b8ec3cb525e4cb18628de6c15091 (patch) | |
tree | 1d26a006535bffec18cbc1c7aaf6cb8b5463d583 /src/qt/sendcoinsdialog.h | |
parent | 026b5b4523317fdefc69cf5cec55f76f18ad0c0a (diff) | |
download | bitcoin-4b5a6cd14967b8ec3cb525e4cb18628de6c15091.tar.xz |
refactor: helper function signWithExternalSigner()
Does not change behavior.
Review hint:
git show --color-moved --color-moved-ws=allow-indentation-change
Diffstat (limited to 'src/qt/sendcoinsdialog.h')
-rw-r--r-- | src/qt/sendcoinsdialog.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/qt/sendcoinsdialog.h b/src/qt/sendcoinsdialog.h index 1e3284fb08..87f3fbc14c 100644 --- a/src/qt/sendcoinsdialog.h +++ b/src/qt/sendcoinsdialog.h @@ -79,6 +79,15 @@ private: void minimizeFeeSection(bool fMinimize); // Format confirmation message bool PrepareSendText(QString& question_string, QString& informative_text, QString& detailed_text); + /* Sign PSBT using external signer. + * + * @param[in,out] psbtx the PSBT to sign + * @param[in,out] mtx needed to attempt to finalize + * @param[in,out] complete whether the PSBT is complete (a successfully signed multisig transaction may not be complete) + * + * @returns false if any failure occurred, which may include the user rejection of a transaction on the device. + */ + bool signWithExternalSigner(PartiallySignedTransaction& psbt, CMutableTransaction& mtx, bool& complete); void updateFeeMinimizedLabel(); void updateCoinControlState(); |