Skip to content

Commit ee02deb

Browse files
author
MarcoFalke
committed
Merge #13531: doc: Clarify that mempool txiter is const_iterator
faca0a8 doc: Clarify that mempool txiter is const_iterator (MarcoFalke) Pull request description: `iterator` and `const_iterator` are the same type for multi indexed transaction sets, but `const_iterator` should be preferred for documentation purposes. Tree-SHA512: 83e8af36d15aa1e9fc59b3c2279504fd6f6ea3188dc43e36dec279ee0613ff07947d7143fd112bade7868b0dba59ecab3fd246cbde82e376ef965b646d9f8c4d
2 parents 452bb90 + faca0a8 commit ee02deb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/txmempool.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ class CTxMemPool
486486
mutable CCriticalSection cs;
487487
indexed_transaction_set mapTx GUARDED_BY(cs);
488488

489-
typedef indexed_transaction_set::nth_index<0>::type::iterator txiter;
489+
using txiter = indexed_transaction_set::nth_index<0>::type::const_iterator;
490490
std::vector<std::pair<uint256, txiter> > vTxHashes; //!< All tx witness hashes/entries in mapTx, in random order
491491

492492
struct CompareIteratorByHash {

0 commit comments

Comments
 (0)