Skip to content

Annotation may be wrong? #24713

@guoyl

Description

@guoyl

In the file:
https://github.com/bitcoin/bitcoin/blob/master/src/txmempool.h
the type indexed_transaction_set use incorrect annotation during declaration?
The hashed_unique txid and wtxid should not be sorted. The source code is like this:
// sorted by txid
boost::multi_index::hashed_unique<mempoolentry_txid, SaltedTxidHasher>,
// sorted by wtxid
boost::multi_index::hashed_unique<
boost::multi_index::tag<index_by_wtxid>,
mempoolentry_wtxid,
SaltedTxidHasher

,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions