MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / couldSignInputs

Method couldSignInputs

src/qt/psbtoperationsdialog.cpp:247–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245}
246
247size_t PSBTOperationsDialog::couldSignInputs(const PartiallySignedTransaction &psbtx) {
248 if (!m_wallet_model) {
249 return 0;
250 }
251
252 size_t n_signed;
253 bool complete;
254 const auto err{m_wallet_model->wallet().fillPSBT({.sign = false, .bip32_derivs = false}, &n_signed, *m_transaction_data, complete)};
255
256 if (err) {
257 return 0;
258 }
259 return n_signed;
260}
261
262void PSBTOperationsDialog::showTransactionStatus(const PartiallySignedTransaction &psbtx) {
263 PSBTAnalysis analysis = AnalyzePSBT(psbtx);

Callers

nothing calls this directly

Calls 2

fillPSBTMethod · 0.80
walletMethod · 0.45

Tested by

no test coverage detected