diff --git a/src/qt/transactiontablemodel.cpp b/src/qt/transactiontablemodel.cpp --- a/src/qt/transactiontablemodel.cpp +++ b/src/qt/transactiontablemodel.cpp @@ -86,16 +86,16 @@ * the wallet with that of the core. * Call with transaction that was added, removed or changed. */ - void updateWallet(const uint256 &hash, int status, bool showTransaction) { + void updateWallet(const TxId &txid, int status, bool showTransaction) { qDebug() << "TransactionTablePriv::updateWallet: " + - QString::fromStdString(hash.ToString()) + " " + + QString::fromStdString(txid.ToString()) + " " + QString::number(status); // Find bounds of this transaction in model QList::iterator lower = qLowerBound( - cachedWallet.begin(), cachedWallet.end(), hash, TxLessThan()); + cachedWallet.begin(), cachedWallet.end(), txid, TxLessThan()); QList::iterator upper = qUpperBound( - cachedWallet.begin(), cachedWallet.end(), hash, TxLessThan()); + cachedWallet.begin(), cachedWallet.end(), txid, TxLessThan()); int lowerIndex = (lower - cachedWallet.begin()); int upperIndex = (upper - cachedWallet.begin()); bool inModel = (lower != upper); @@ -129,7 +129,7 @@ LOCK2(cs_main, wallet->cs_wallet); // Find transaction in wallet std::map::iterator mi = - wallet->mapWallet.find(hash); + wallet->mapWallet.find(txid); if (mi == wallet->mapWallet.end()) { qWarning() << "TransactionTablePriv::updateWallet: " "Warning: Got CT_NEW, but transaction is " @@ -260,7 +260,7 @@ void TransactionTableModel::updateTransaction(const QString &hash, int status, bool showTransaction) { - uint256 updated; + TxId updated; updated.SetHex(hash.toStdString()); priv->updateWallet(updated, status, showTransaction); @@ -737,17 +737,17 @@ static std::vector vQueueNotifications; static void NotifyTransactionChanged(TransactionTableModel *ttm, - CWallet *wallet, const uint256 &hash, + CWallet *wallet, const TxId &txid, ChangeType status) { // Find transaction in wallet - std::map::iterator mi = wallet->mapWallet.find(hash); + std::map::iterator mi = wallet->mapWallet.find(txid); // Determine whether to show transaction or not (determine this here so that // no relocking is needed in GUI thread) bool inWallet = mi != wallet->mapWallet.end(); bool showTransaction = (inWallet && TransactionRecord::showTransaction(mi->second)); - TransactionNotification notification(hash, status, showTransaction); + TransactionNotification notification(txid, status, showTransaction); if (fQueueNotifications) { vQueueNotifications.push_back(notification); diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h --- a/src/wallet/wallet.h +++ b/src/wallet/wallet.h @@ -1079,7 +1079,7 @@ * Wallet transaction added, removed or updated. * @note called with lock cs_wallet held. */ - boost::signals2::signal NotifyTransactionChanged;