txgossip/gossip.py
def _gossip(self):
        """Initiate a round of gossiping."""
        live_peers = self.live_peers
        dead_peers = self.dead_peers
        if live_peers:
            self._gossip_with_peer(random.choice(live_peers))

        prob = len(dead_peers) / float(len(live_peers) + 1)
        if random.random() < prob:
            self._gossip_with_peer(random.choice(dead_peers))

        for state in self._states.values():
            if state.name != self.name:
                state.check_suspected()
Initiate a round of gossiping.
Initiate a round of gossiping.
Initiate a round of gossiping .
def _gossip(self):
        live_peers = self.live_peers
        dead_peers = self.dead_peers
        if live_peers:
            self._gossip_with_peer(random.choice(live_peers))
        prob = len(dead_peers) / float(len(live_peers) + 1)
        if random.random() < prob:
            self._gossip_with_peer(random.choice(dead_peers))
        for state in self._states.values():
            if state.name != self.name:
                state.check_suspected()
def _gossip ( self ) : live_peers = self . live_peers dead_peers = self . dead_peers if live_peers : self . _gossip_with_peer ( random . choice ( live_peers ) ) prob = len ( dead_peers ) / float ( len ( live_peers ) + 1 ) if random . random ( ) < prob : self . _gossip_with_peer ( random . choice ( dead_peers ) ) for state in self . _states . values ( ) : if state . name != self . name : state . check_suspected ( )
Initiate a round of gossiping.
Initiate a round of gossiping .
"""Initiate a round of gossiping."""
self