Inside Bitcoin
Opening the selected file…
Inside Bitcoin
Opening the selected file…
The code behind the network, with room to understand it.
Release published 2026-10-28 · Snapshot fetched 2026-11-01. Latest stable release at fetch time; development branches and Git history are excluded. Only the selected code window and visible folders load here.
252size_t n_signed;253bool complete;254const auto err{m_wallet_model->wallet().fillPSBT({.sign = false, .bip32_derivs = false}, &n_signed, *m_transaction_data, complete)};256if (err) {257return 0;258}259return n_signed;260}262void PSBTOperationsDialog::showTransactionStatus(const PartiallySignedTransaction &psbtx) {263PSBTAnalysis analysis = AnalyzePSBT(psbtx);264size_t n_could_sign = couldSignInputs(psbtx);266switch (analysis.next) {267case PSBTRole::UPDATER: {268showStatus(tr("Transaction is missing some information about inputs."), StatusLevel::Warn);269break;270}271case PSBTRole::SIGNER: {272QString need_sig_text = tr("Transaction still needs signature(s).");273StatusLevel level = StatusLevel::Info;274if (!m_wallet_model) {275need_sig_text += " " + tr("(But no wallet is loaded.)");276level = StatusLevel::Warn;277} else if (m_wallet_model->wallet().privateKeysDisabled()) {278need_sig_text += " " + tr("(But this wallet cannot sign transactions.)");279level = StatusLevel::Warn;280} else if (n_could_sign < 1) {281need_sig_text += " " + tr("(But this wallet does not have the right keys.)"); // XXX wording282level = StatusLevel::Warn;283}284showStatus(need_sig_text, level);285break;286}287case PSBTRole::FINALIZER:288case PSBTRole::EXTRACTOR: {289showStatus(tr("Transaction is fully signed and ready for broadcast."), StatusLevel::Info);290break;291}292default: {293showStatus(tr("Transaction status is unknown."), StatusLevel::Error);294break;295}296}297}
Independent explanations by MyBitcoinExplorer. Not affiliated with or endorsed by Bitcoin Core. Guides are educational and do not replace the source or its tests.
Bitcoin Core source © its contributors, distributed under the MIT license. Original notices and bundled third-party licenses are retained in the source tree.