| 410 | } |
| 411 | |
| 412 | void TransactionView::abandonTx() |
| 413 | { |
| 414 | if(!transactionView || !transactionView->selectionModel()) |
| 415 | return; |
| 416 | QModelIndexList selection = transactionView->selectionModel()->selectedRows(0); |
| 417 | |
| 418 | // get the hash from the TxHashRole (QVariant / QString) |
| 419 | uint256 hash; |
| 420 | QString hashQStr = selection.at(0).data(TransactionTableModel::TxHashRole).toString(); |
| 421 | hash.SetHex(hashQStr.toStdString()); |
| 422 | |
| 423 | // Abandon the wallet transaction over the walletModel |
| 424 | model->wallet().abandonTransaction(hash); |
| 425 | |
| 426 | // Update the table |
| 427 | model->getTransactionTableModel()->updateTransaction(hashQStr, CT_UPDATED, false); |
| 428 | } |
| 429 | |
| 430 | void TransactionView::bumpFee([[maybe_unused]] bool checked) |
| 431 | { |
nothing calls this directly
no test coverage detected