Debug when OneShot node is about to disconnect.

This commit is contained in:
R E Broadley 2014-06-23 16:23:06 +07:00 committed by Evan Duffield
parent e025fe7934
commit b7ac800699

View File

@ -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")