MCPcopy Create free account
hub / github.com/ElementsProject/elements / couldSignInputs

Method couldSignInputs

src/qt/psbtoperationsdialog.cpp:243–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243size_t PSBTOperationsDialog::couldSignInputs(const PartiallySignedTransaction &psbtx) {
244 if (!m_wallet_model) {
245 return 0;
246 }
247
248 size_t n_signed;
249 bool complete;
250 TransactionError err = m_wallet_model->wallet().fillPSBT(SIGHASH_ALL, false /* sign */, false /* bip32derivs */, &n_signed, m_transaction_data, complete);
251
252 if (err != TransactionError::OK) {
253 return 0;
254 }
255 return n_signed;
256}
257
258void PSBTOperationsDialog::showTransactionStatus(const PartiallySignedTransaction &psbtx) {
259 PSBTAnalysis analysis = AnalyzePSBT(psbtx);

Callers

nothing calls this directly

Calls 2

fillPSBTMethod · 0.80
walletMethod · 0.45

Tested by

no test coverage detected