From faca0a862558cf17777f36c38452ba770227cbc9 Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Sun, 24 Jun 2018 15:51:54 -0400 Subject: [PATCH] doc: Clarify that mempool txiter is const_iterator --- src/txmempool.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/txmempool.h b/src/txmempool.h index bda812b42..ebfcf36e1 100644 --- a/src/txmempool.h +++ b/src/txmempool.h @@ -486,7 +486,7 @@ public: mutable CCriticalSection cs; indexed_transaction_set mapTx GUARDED_BY(cs); - typedef indexed_transaction_set::nth_index<0>::type::iterator txiter; + using txiter = indexed_transaction_set::nth_index<0>::type::const_iterator; std::vector > vTxHashes; //!< All tx witness hashes/entries in mapTx, in random order struct CompareIteratorByHash {