Merge bitcoin-core/gui#705: doc: Fix comment about how wallet txs are sorted

c497a198db6f417d2612078a9fbc101e259fab33 Fix comment about how wallet txs are sorted (John Moffett)

Pull request description:

  The wallet transactions in the node are not sorted by txid (or any hash) since https://github.com/bitcoin/bitcoin/pull/24699.

  This is how they're stored in memory now:

  835212cd1d/src/wallet/wallet.h (L397-L399)

ACKs for top commit:
  achow101:
    ACK c497a198db6f417d2612078a9fbc101e259fab33
  jarolrod:
    ACK c497a198db6f417d2612078a9fbc101e259fab33

Tree-SHA512: e72559991688452ef254474d4235dc75fac655bce04909c3a0eece907360f4c6f57707db9b4373a4bd2271b23c57e863684c33e0728adf48e477c5499cdfdad7
This commit is contained in:
Hennadii Stepanov 2023-02-03 18:57:14 +00:00 committed by pasta
parent 44e6c9e902
commit a7e3c2c916
No known key found for this signature in database
GPG Key ID: E2F3D7916E722D38

View File

@ -91,10 +91,7 @@ public:
TransactionTableModel *parent; TransactionTableModel *parent;
/* Local cache of wallet. //! Local cache of wallet sorted by transaction hash
* As it is in the same order as the CWallet, by definition
* this is sorted by sha256.
*/
QList<TransactionRecord> cachedWallet; QList<TransactionRecord> cachedWallet;
/** True when model finishes loading all wallet transactions on start */ /** True when model finishes loading all wallet transactions on start */