fixed regtest+ds issues
This commit is contained in:
parent
2992907d91
commit
1f828f45ec
13
src/net.cpp
13
src/net.cpp
@ -434,9 +434,16 @@ CNode* FindNode(std::string addrName)
|
|||||||
CNode* FindNode(const CService& addr)
|
CNode* FindNode(const CService& addr)
|
||||||
{
|
{
|
||||||
LOCK(cs_vNodes);
|
LOCK(cs_vNodes);
|
||||||
BOOST_FOREACH(CNode* pnode, vNodes)
|
BOOST_FOREACH(CNode* pnode, vNodes){
|
||||||
if(pnode->addr == addr)
|
if(RegTest()){
|
||||||
return (pnode);
|
//if using regtest, just check the IP
|
||||||
|
if((CNetAddr)pnode->addr == (CNetAddr)addr)
|
||||||
|
return (pnode);
|
||||||
|
} else {
|
||||||
|
if(pnode->addr == addr)
|
||||||
|
return (pnode);
|
||||||
|
}
|
||||||
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user