예제 #1
0
파일: peer.py 프로젝트: ckeenan/pyethereum
 def send_Disconnect(self, reason=None):
     log_p2p.debug('sending disconnect', remote_id=self, readon=reason)
     self.send_packet(packeter.dump_Disconnect(reason=reason))
     # end connection
     time.sleep(2)
     forget = reason in self.reasons_to_forget
     signals.peer_disconnect_requested.send(Peer, peer=self, forget=forget)
예제 #2
0
 def send_Disconnect(self, reason=None):
     logger.info('%r sending disconnect: %r', self, reason)
     self.send_packet(packeter.dump_Disconnect(reason=reason))
     # end connection
     time.sleep(2)
     forget = reason in self.reasons_to_forget
     signals.peer_disconnect_requested.send(Peer, peer=self, forget=forget)
예제 #3
0
 def send_Disconnect(self, reason=None):
     logger.info('%r sending disconnect: %r', self, reason)
     self.send_packet(packeter.dump_Disconnect(reason=reason))
     # end connection
     time.sleep(2)
     forget = reason in self.reasons_to_forget
     signals.peer_disconnect_requested.send(Peer, peer=self, forget=forget)
예제 #4
0
 def send_Disconnect(self, reason=None):
     log_p2p.debug('sending disconnect', remote_id=self, readon=reason)
     self.send_packet(packeter.dump_Disconnect(reason=reason))
     # end connection
     time.sleep(2)
     forget = reason in self.reasons_to_forget
     signals.peer_disconnect_requested.send(Peer, peer=self, forget=forget)
예제 #5
0
파일: peer.py 프로젝트: jo/pyethereum
 def send_Disconnect(self, reason=None):
     logger.info('disconnecting {0}, reason: {1}'.format(
         str(self), reason or ''))
     self.send_packet(packeter.dump_Disconnect())
     # end connection
     time.sleep(2)
     signals.disconnect_requested.send(self)
예제 #6
0
 def send_Disconnect(self, reason=None):
     logger.info('disconnecting {0}, reason: {1}'.format(
         str(self), reason or ''))
     self.send_packet(packeter.dump_Disconnect(reason=reason))
     # end connection
     time.sleep(2)
     forget = reason in self.reasons_to_forget
     signals.peer_disconnect_requested.send(Peer, peer=self, forget=forget)
예제 #7
0
    def send_Disconnect(self, reason=None):
        logger.info('disconnecting {0}, reason: {1}'.format(
            str(self), reason or ''))
        self.send_packet(packeter.dump_Disconnect())
        # end connection
        time.sleep(2)

        forget = True if reason and 'Incompatible' in reason else False
        signals.peer_disconnect_requested.send(Peer, peer=self, forget=forget)
예제 #8
0
 def send_Disconnect(self, reason=None):
     self.send_packet(packeter.dump_Disconnect())
     # end connection
     time.sleep(2)
     signals.disconnect_requested.send(self)