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

Method lookupAddress

src/qt/transactiontablemodel.cpp:354–367  ·  view source on GitHub ↗

Look up address in address book, if found return label (address) otherwise just return (address) */

Source from the content-addressed store, hash-verified

352 otherwise just return (address)
353 */
354QString TransactionTableModel::lookupAddress(const std::string &address, bool tooltip) const
355{
356 QString label = walletModel->getAddressTableModel()->labelForAddress(QString::fromStdString(address));
357 QString description;
358 if(!label.isEmpty())
359 {
360 description += label;
361 }
362 if(label.isEmpty() || tooltip)
363 {
364 description += QString(" (") + QString::fromStdString(address) + QString(")");
365 }
366 return description;
367}
368
369QString TransactionTableModel::formatTxType(const TransactionRecord *wtx) const
370{

Callers

nothing calls this directly

Calls 2

labelForAddressMethod · 0.80
getAddressTableModelMethod · 0.80

Tested by

no test coverage detected