Added peer rotation
This commit is contained in:
parent
e0e901291e
commit
f1d060a92e
2 changed files with 67 additions and 5 deletions
|
|
@ -469,6 +469,10 @@ class LXMPeer:
|
|||
|
||||
return self._um_count
|
||||
|
||||
@property
|
||||
def acceptance_rate(self):
|
||||
return 0 if self.offered == 0 else (self.outgoing/self.offered)
|
||||
|
||||
def _update_counts(self):
|
||||
if not self._hm_counts_synced:
|
||||
hm = self.handled_messages; del hm
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue