@@ -330,7 +330,7 @@ class CSigSharesNodeState
330330 CSigSharesInv knows;
331331 };
332332 // TODO limit number of sessions per node
333- std::unordered_map<uint256, Session, StaticSaltedHasher > sessions;
333+ Uint256HashMap< Session> sessions;
334334
335335 std::unordered_map<uint32_t , Session*> sessionByRecvId;
336336
@@ -381,7 +381,7 @@ class CSigSharesManager : public CRecoveredSigsListener
381381 CThreadInterrupt workInterrupt;
382382
383383 SigShareMap<CSigShare> sigShares GUARDED_BY (cs);
384- std::unordered_map<uint256, CSignedSession, StaticSaltedHasher > signedSessions GUARDED_BY (cs);
384+ Uint256HashMap< CSignedSession> signedSessions GUARDED_BY (cs);
385385
386386 // stores time of last receivedSigShare. Used to detect timeouts
387387 std::unordered_map<uint256, int64_t , StaticSaltedHasher> timeSeenForSessions GUARDED_BY (cs);
@@ -477,12 +477,12 @@ class CSigSharesManager : public CRecoveredSigsListener
477477 void BanNode (NodeId nodeId, PeerManager& peerman);
478478
479479 bool SendMessages (CConnman& connman);
480- void CollectSigSharesToRequest (std::unordered_map<NodeId, std::unordered_map<uint256, CSigSharesInv, StaticSaltedHasher >>& sigSharesToRequest) EXCLUSIVE_LOCKS_REQUIRED(cs);
481- void CollectSigSharesToSend (std::unordered_map<NodeId, std::unordered_map<uint256, CBatchedSigShares, StaticSaltedHasher >>& sigSharesToSend) EXCLUSIVE_LOCKS_REQUIRED(cs);
480+ void CollectSigSharesToRequest (std::unordered_map<NodeId, Uint256HashMap< CSigSharesInv>>& sigSharesToRequest) EXCLUSIVE_LOCKS_REQUIRED(cs);
481+ void CollectSigSharesToSend (std::unordered_map<NodeId, Uint256HashMap< CBatchedSigShares>>& sigSharesToSend) EXCLUSIVE_LOCKS_REQUIRED(cs);
482482 void CollectSigSharesToSendConcentrated (std::unordered_map<NodeId, std::vector<CSigShare>>& sigSharesToSend, const std::vector<CNode*>& vNodes) EXCLUSIVE_LOCKS_REQUIRED(cs);
483483 void CollectSigSharesToAnnounce (
484484 const CConnman& connman,
485- std::unordered_map<NodeId, std::unordered_map<uint256, CSigSharesInv, StaticSaltedHasher >>& sigSharesToAnnounce)
485+ std::unordered_map<NodeId, Uint256HashMap< CSigSharesInv>>& sigSharesToAnnounce)
486486 EXCLUSIVE_LOCKS_REQUIRED(cs);
487487 void SignPendingSigShares (const CConnman& connman, PeerManager& peerman);
488488 void WorkThreadMain (CConnman& connman, PeerManager& peerman);
0 commit comments