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

Function NotifyAddressBookChanged

src/qt/walletmodel.cpp:365–380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

363}
364
365static void NotifyAddressBookChanged(WalletModel *walletmodel,
366 const CTxDestination &address, const std::string &label, bool isMine,
367 wallet::AddressPurpose purpose, ChangeType status)
368{
369 QString strAddress = QString::fromStdString(EncodeDestination(address));
370 QString strLabel = QString::fromStdString(label);
371
372 qDebug() << "NotifyAddressBookChanged: " + strAddress + " " + strLabel + " isMine=" + QString::number(isMine) + " purpose=" + QString::number(static_cast<uint8_t>(purpose)) + " status=" + QString::number(status);
373 bool invoked = QMetaObject::invokeMethod(walletmodel, "updateAddressBook",
374 Q_ARG(QString, strAddress),
375 Q_ARG(QString, strLabel),
376 Q_ARG(bool, isMine),
377 Q_ARG(wallet::AddressPurpose, purpose),
378 Q_ARG(int, status));
379 assert(invoked);
380}
381
382static void NotifyTransactionChanged(WalletModel *walletmodel, const Txid& hash, ChangeType status)
383{

Callers 2

SetAddressBookWithDBMethod · 0.85
DelAddressBookWithDBMethod · 0.85

Calls 1

EncodeDestinationFunction · 0.85

Tested by

no test coverage detected