fatal=2,errorText="Your is using an old protocol. Closing connection.")))
logger.debug('Closing connection to old protocol version '+str(self.remoteProtocolVersion)+' node: '+str(self.peer))
returnFalse
ifself.timeOffset>3600:
self.sendDataThreadQueue.put((0,'sendRawData',protocol.assembleErrorMessage(fatal=2,errorText="Your time is too far in the future compared to mine. Closing connection.")))
logger.info("%s's time is too far in the future (%s seconds). Closing connection to it."%(self.peer,self.timeOffset))
fatal=2,errorText="Your time is too far in the future compared to mine. Closing connection.")))
logger.info("%s's time is too far in the future (%s seconds). Closing connection to it.",self.peer,self.timeOffset)
shared.timeOffsetWrongCount+=1
time.sleep(2)
returnFalse
elifself.timeOffset<-3600:
self.sendDataThreadQueue.put((0,'sendRawData',protocol.assembleErrorMessage(fatal=2,errorText="Your time is too far in the past compared to mine. Closing connection.")))
logger.info("%s's time is too far in the past (timeOffset %s seconds). Closing connection to it."%(self.peer,self.timeOffset))