mirror of
https://github.com/dashpay/dash.git
synced 2024-12-30 14:25:53 +01:00
Debug when OneShot node is about to disconnect.
This commit is contained in:
parent
e025fe7934
commit
b7ac800699
@ -4318,9 +4318,11 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv)
|
|||||||
addrman.Add(vAddrOk, pfrom->addr, 2 * 60 * 60);
|
addrman.Add(vAddrOk, pfrom->addr, 2 * 60 * 60);
|
||||||
if (vAddr.size() < 1000)
|
if (vAddr.size() < 1000)
|
||||||
pfrom->fGetAddr = false;
|
pfrom->fGetAddr = false;
|
||||||
if (pfrom->fOneShot)
|
if (pfrom->fOneShot) {
|
||||||
|
printf("OneShot. Disconnecting\n");
|
||||||
pfrom->fDisconnect = true;
|
pfrom->fDisconnect = true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
else if (strCommand == "inv")
|
else if (strCommand == "inv")
|
||||||
|
Loading…
Reference in New Issue
Block a user