mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Use NewcoingAddress in mConnectionPool.
This commit is contained in:
@@ -122,10 +122,9 @@ void ConnectionPool::peerDisconnected(Peer::pointer peer)
|
||||
// XXX Don't access member variable directly.
|
||||
if (peer->mPublicKey.isValid())
|
||||
{
|
||||
// XXX Would be better if NewcoinAddress had a hash function.
|
||||
boost::unordered_map<std::vector<unsigned char>, Peer::pointer>::iterator itCm;
|
||||
boost::unordered_map<NewcoinAddress, Peer::pointer>::iterator itCm;
|
||||
|
||||
itCm = mConnectedMap.find(peer->mPublicKey.getNodePublic());
|
||||
itCm = mConnectedMap.find(peer->mPublicKey);
|
||||
|
||||
if (itCm == mConnectedMap.end())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user