@@ -49,11 +49,11 @@ struct TxLessThan
4949 {
5050 return a.hash < b.hash ;
5151 }
52- bool operator ()(const TransactionRecord &a, const uint256 &b) const
52+ bool operator ()(const TransactionRecord &a, const Txid &b) const
5353 {
5454 return a.hash < b;
5555 }
56- bool operator ()(const uint256 &a, const TransactionRecord &b) const
56+ bool operator ()(const Txid &a, const TransactionRecord &b) const
5757 {
5858 return a < b.hash ;
5959 }
@@ -64,7 +64,7 @@ struct TransactionNotification
6464{
6565public:
6666 TransactionNotification () = default ;
67- TransactionNotification (uint256 _hash, ChangeType _status, bool _showTransaction):
67+ TransactionNotification (Txid _hash, ChangeType _status, bool _showTransaction):
6868 hash (_hash), status(_status), showTransaction(_showTransaction) {}
6969
7070 void invoke (QObject *ttm)
@@ -78,7 +78,7 @@ struct TransactionNotification
7878 assert (invoked);
7979 }
8080private:
81- uint256 hash;
81+ Txid hash;
8282 ChangeType status;
8383 bool showTransaction;
8484};
@@ -103,7 +103,7 @@ class TransactionTablePriv
103103 bool m_loading = false ;
104104 std::vector< TransactionNotification > vQueueNotifications;
105105
106- void NotifyTransactionChanged (const uint256 & hash, ChangeType status);
106+ void NotifyTransactionChanged (const Txid& hash, ChangeType status);
107107 void DispatchNotifications ();
108108
109109 /* Query entire wallet anew from core.
@@ -127,7 +127,7 @@ class TransactionTablePriv
127127
128128 Call with transaction that was added, removed or changed.
129129 */
130- void updateWallet (interfaces::Wallet& wallet, const uint256 & hash, int status, bool showTransaction)
130+ void updateWallet (interfaces::Wallet& wallet, const Txid& hash, int status, bool showTransaction)
131131 {
132132 qDebug () << " TransactionTablePriv::updateWallet: " + QString::fromStdString (hash.ToString ()) + " " + QString::number (status);
133133
@@ -699,7 +699,7 @@ void TransactionTableModel::updateDisplayUnit()
699699 Q_EMIT dataChanged (index (0 , Amount), index (priv->size ()-1 , Amount));
700700}
701701
702- void TransactionTablePriv::NotifyTransactionChanged (const uint256 & hash, ChangeType status)
702+ void TransactionTablePriv::NotifyTransactionChanged (const Txid& hash, ChangeType status)
703703{
704704 // Find transaction in wallet
705705 // Determine whether to show transaction or not (determine this here so that no relocking is needed in GUI thread)
0 commit comments