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

Function NotifyAddressBookChanged

src/qt/walletmodel.cpp:407–423  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

405}
406
407static void NotifyAddressBookChanged(WalletModel *walletmodel,
408 const CTxDestination &address, const std::string &label, bool isMine,
409 const std::string &purpose, ChangeType status)
410{
411 QString strAddress = QString::fromStdString(EncodeDestination(address));
412 QString strLabel = QString::fromStdString(label);
413 QString strPurpose = QString::fromStdString(purpose);
414
415 qDebug() << "NotifyAddressBookChanged: " + strAddress + " " + strLabel + " isMine=" + QString::number(isMine) + " purpose=" + strPurpose + " status=" + QString::number(status);
416 bool invoked = QMetaObject::invokeMethod(walletmodel, "updateAddressBook", Qt::QueuedConnection,
417 Q_ARG(QString, strAddress),
418 Q_ARG(QString, strLabel),
419 Q_ARG(bool, isMine),
420 Q_ARG(QString, strPurpose),
421 Q_ARG(int, status));
422 assert(invoked);
423}
424
425static void NotifyTransactionChanged(WalletModel *walletmodel, const uint256 &hash, ChangeType status)
426{

Callers 2

SetAddressBookWithDBMethod · 0.85
DelAddressBookMethod · 0.85

Calls 1

EncodeDestinationFunction · 0.85

Tested by

no test coverage detected