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

Method abandonTx

src/qt/transactionview.cpp:412–428  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

410}
411
412void 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
430void TransactionView::bumpFee([[maybe_unused]] bool checked)
431{

Callers

nothing calls this directly

Calls 6

abandonTransactionMethod · 0.80
dataMethod · 0.45
SetHexMethod · 0.45
walletMethod · 0.45
updateTransactionMethod · 0.45

Tested by

no test coverage detected