Skip to content

Conversation

john-moffett
Copy link
Contributor

The wallet transactions in the node are not sorted by txid (or any hash) since bitcoin/bitcoin#24699.

This is how they're stored in memory now:

gui/src/wallet/wallet.h

Lines 397 to 399 in 835212c

/** Map from txid to CWalletTx for all transactions this wallet is
* interested in, including received and sent transactions. */
std::unordered_map<uint256, CWalletTx, SaltedTxidHasher> mapWallet GUARDED_BY(cs_wallet);

The wallet transactions in the node are not sorted
by hash. Also make comment Doxygen compatible.
@DrahtBot
Copy link
Contributor

DrahtBot commented Jan 27, 2023

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK achow101, jarolrod

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

@jarolrod jarolrod added the Doc label Jan 27, 2023
@hebasto hebasto added the Wallet label Feb 2, 2023
@hebasto
Copy link
Member

hebasto commented Feb 2, 2023

cc @achow101

@achow101
Copy link
Member

achow101 commented Feb 2, 2023

ACK c497a19

Copy link
Member

@jarolrod jarolrod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK c497a19

@hebasto hebasto merged commit daebf9e into bitcoin-core:master Feb 3, 2023
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Feb 3, 2023
… sorted

c497a19 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 bitcoin#24699.

  This is how they're stored in memory now:

  https://github.com/bitcoin-core/gui/blob/835212cd1d8f8fc7f19775f5ff8cc21c099122b2/src/wallet/wallet.h#L397-L399

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

Tree-SHA512: e72559991688452ef254474d4235dc75fac655bce04909c3a0eece907360f4c6f57707db9b4373a4bd2271b23c57e863684c33e0728adf48e477c5499cdfdad7
@bitcoin-core bitcoin-core locked and limited conversation to collaborators Feb 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants