MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / lookupAddress

Method lookupAddress

src/qt/addresstablemodel.cpp:435–447  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

433}
434
435int AddressTableModel::lookupAddress(const QString &address) const
436{
437 QModelIndexList lst = match(index(0, Address, QModelIndex()),
438 Qt::EditRole, address, 1, Qt::MatchExactly);
439 if(lst.isEmpty())
440 {
441 return -1;
442 }
443 else
444 {
445 return lst.at(0).row();
446 }
447}
448
449OutputType AddressTableModel::GetDefaultAddressType() const { return walletModel->wallet().getDefaultAddressType(); };
450

Callers 1

editLabelMethod · 0.45

Calls 2

QModelIndexClass · 0.70
atMethod · 0.45

Tested by

no test coverage detected