@@ -204,7 +204,7 @@ std::vector<CDeterministicMNCPtr> GetAllQuorumMembers(Consensus::LLMQType llmqTy
204204 bool reset_cache)
205205{
206206 static RecursiveMutex cs_members;
207- static std::map<Consensus::LLMQType, unordered_lru_cache<uint256, std::vector<CDeterministicMNCPtr>, StaticSaltedHasher >> mapQuorumMembers GUARDED_BY (cs_members);
207+ static std::map<Consensus::LLMQType, Uint256LruHashMap< std::vector<CDeterministicMNCPtr>>> mapQuorumMembers GUARDED_BY (cs_members);
208208 static RecursiveMutex cs_indexed_members;
209209 static std::map<Consensus::LLMQType, unordered_lru_cache<std::pair<uint256, int >, std::vector<CDeterministicMNCPtr>, StaticSaltedHasher>> mapIndexedQuorumMembers GUARDED_BY (cs_indexed_members);
210210 if (!IsQuorumTypeEnabled (llmqType, pQuorumBaseBlockIndex->pprev )) {
@@ -969,13 +969,13 @@ void InitQuorumsCache(CacheType& cache, bool limit_by_connections)
969969 }
970970}
971971template void InitQuorumsCache<std::map<Consensus::LLMQType, Uint256LruHashMap<bool >>>(std::map<Consensus::LLMQType, Uint256LruHashMap<bool >>& cache, bool limit_by_connections);
972- template void InitQuorumsCache<std::map<Consensus::LLMQType, unordered_lru_cache<uint256, std::vector<CQuorumCPtr>, StaticSaltedHasher >>>(std::map<Consensus::LLMQType, unordered_lru_cache<uint256, std::vector<CQuorumCPtr>, StaticSaltedHasher >>& cache, bool limit_by_connections);
973- template void InitQuorumsCache<std::map<Consensus::LLMQType, unordered_lru_cache<uint256, std::shared_ptr<llmq::CQuorum>, StaticSaltedHasher, 0ul , 0ul >, std::less<Consensus::LLMQType>, std::allocator<std::pair<Consensus::LLMQType const , unordered_lru_cache<uint256, std::shared_ptr<llmq::CQuorum>, StaticSaltedHasher, 0ul , 0ul >>>>>(std::map<Consensus::LLMQType, unordered_lru_cache<uint256, std::shared_ptr<llmq::CQuorum>, StaticSaltedHasher, 0ul , 0ul >, std::less<Consensus::LLMQType>, std::allocator<std::pair<Consensus::LLMQType const , unordered_lru_cache<uint256, std::shared_ptr<llmq::CQuorum>, StaticSaltedHasher, 0ul , 0ul >>>>&cache, bool limit_by_connections);
972+ template void InitQuorumsCache<std::map<Consensus::LLMQType, Uint256LruHashMap< std::vector<CQuorumCPtr>>>>(std::map<Consensus::LLMQType, Uint256LruHashMap< std::vector<CQuorumCPtr>>>& cache, bool limit_by_connections);
973+ template void InitQuorumsCache<std::map<Consensus::LLMQType, Uint256LruHashMap< std::shared_ptr<llmq::CQuorum>>, std::less<Consensus::LLMQType>, std::allocator<std::pair<Consensus::LLMQType const , Uint256LruHashMap< std::shared_ptr<llmq::CQuorum>>>>>>(std::map<Consensus::LLMQType, Uint256LruHashMap< std::shared_ptr<llmq::CQuorum>>, std::less<Consensus::LLMQType>, std::allocator<std::pair<Consensus::LLMQType const , Uint256LruHashMap< std::shared_ptr<llmq::CQuorum>>>>>&cache, bool limit_by_connections);
974974template void InitQuorumsCache<std::map<Consensus::LLMQType, Uint256LruHashMap<int >>>(std::map<Consensus::LLMQType, Uint256LruHashMap<int >>& cache, bool limit_by_connections);
975975template void InitQuorumsCache<std::map<Consensus::LLMQType, Uint256LruHashMap<uint256>>>(std::map<Consensus::LLMQType, Uint256LruHashMap<uint256>>& cache, bool limit_by_connections);
976976template void
977- InitQuorumsCache<std::map<Consensus::LLMQType, unordered_lru_cache<uint256, std::pair<uint256, int >, StaticSaltedHasher >>>(
978- std::map<Consensus::LLMQType, unordered_lru_cache<uint256, std::pair<uint256, int >, StaticSaltedHasher >>& cache,
977+ InitQuorumsCache<std::map<Consensus::LLMQType, Uint256LruHashMap< std::pair<uint256, int >>>>(
978+ std::map<Consensus::LLMQType, Uint256LruHashMap< std::pair<uint256, int >>>& cache,
979979 bool limit_by_connections);
980980} // namespace utils
981981} // namespace llmq
0 commit comments