| 245 | } |
| 246 | |
| 247 | size_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 | |
| 262 | void PSBTOperationsDialog::showTransactionStatus(const PartiallySignedTransaction &psbtx) { |
| 263 | PSBTAnalysis analysis = AnalyzePSBT(psbtx); |