def HandleVersion(self, payload):
        """Process the response of `self.RequestVersion`."""
        self.Version = IOHelper.AsSerializableWithType(payload, "neo.Network.Payloads.VersionPayload.VersionPayload")

        if not self.Version:
            return

        if self.incoming_client:
            if self.Version.Nonce == self.nodeid:
                self.Disconnect()
            self.SendVerack()
        else:
            self.nodeid = self.Version.Nonce
            self.SendVersion()
def HandleVersion ( self , payload ) : self . Version = IOHelper . AsSerializableWithType ( payload , "neo.Network.Payloads.VersionPayload.VersionPayload" ) if not self . Version : return if self . incoming_client : if self . Version . Nonce == self . nodeid : self . Disconnect ( ) self . SendVerack ( ) else : self . nodeid = self . Version . Nonce self . SendVersion ( )
Process the response of `self.RequestVersion`.