| 241 | } |
| 242 | |
| 243 | size_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 | |
| 258 | void PSBTOperationsDialog::showTransactionStatus(const PartiallySignedTransaction &psbtx) { |
| 259 | PSBTAnalysis analysis = AnalyzePSBT(psbtx); |