txgossip/gossip.py
def _handle_request(self, message, address):
        """Handle an incoming gossip request."""
        deltas, requests, new_peers = self._scuttle.scuttle(
            message['digest'])
        self._handle_new_peers(new_peers)
        response = json.dumps({
            'type': 'first-response', 'digest': requests, 'updates': deltas
            })
        self.transport.write(response, address)
Handle an incoming gossip request.
Handle an incoming gossip request.
Handle an incoming gossip request .
def _handle_request(self, message, address):
        deltas, requests, new_peers = self._scuttle.scuttle(
            message['digest'])
        self._handle_new_peers(new_peers)
        response = json.dumps({
            'type': 'first-response', 'digest': requests, 'updates': deltas
            })
        self.transport.write(response, address)
def _handle_request ( self , message , address ) : deltas , requests , new_peers = self . _scuttle . scuttle ( message [ 'digest' ] ) self . _handle_new_peers ( new_peers ) response = json . dumps ( { 'type' : 'first-response' , 'digest' : requests , 'updates' : deltas } ) self . transport . write ( response , address )
Handle an incoming gossip request.
Handle an incoming gossip request .
"""Handle an incoming gossip request."""
self
message
address