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

Method bumpFee

src/qt/transactionview.cpp:430–451  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

428}
429
430void 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
453void TransactionView::copyAddress()
454{

Callers

nothing calls this directly

Calls 4

dataMethod · 0.45
SetHexMethod · 0.45
updateTransactionMethod · 0.45

Tested by

no test coverage detected