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
,
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