Skip to content

Commit faca0a8

Browse files
author
MarcoFalke
committed
doc: Clarify that mempool txiter is const_iterator
1 parent 6579d80 commit faca0a8

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)