| 428 | } |
| 429 | |
| 430 | void TransactionView::bumpFee([[maybe_unused]] bool checked) |
| 431 | { |
| 432 | if(!transactionView || !transactionView->selectionModel()) |
| 433 | return; |
| 434 | QModelIndexList selection = transactionView->selectionModel()->selectedRows(0); |
| 435 | |
| 436 | // get the hash from the TxHashRole (QVariant / QString) |
| 437 | uint256 hash; |
| 438 | QString hashQStr = selection.at(0).data(TransactionTableModel::TxHashRole).toString(); |
| 439 | hash.SetHex(hashQStr.toStdString()); |
| 440 | |
| 441 | // Bump tx fee over the walletModel |
| 442 | uint256 newHash; |
| 443 | if (model->bumpFee(hash, newHash)) { |
| 444 | // Update the table |
| 445 | transactionView->selectionModel()->clearSelection(); |
| 446 | model->getTransactionTableModel()->updateTransaction(hashQStr, CT_UPDATED, true); |
| 447 | |
| 448 | qApp->processEvents(); |
| 449 | Q_EMIT bumpedFee(newHash); |
| 450 | } |
| 451 | } |
| 452 | |
| 453 | void TransactionView::copyAddress() |
| 454 | { |
nothing calls this directly
no test coverage detected