(self, weight=1)
| 107 | return [key for key, val in self.server.tor_manager.site_onions.items() if val == self.target_onion] |
| 108 | |
| 109 | def badAction(self, weight=1): |
| 110 | self.bad_actions += weight |
| 111 | if self.bad_actions > 40: |
| 112 | self.close("Too many bad actions") |
| 113 | elif self.bad_actions > 20: |
| 114 | time.sleep(5) |
| 115 | |
| 116 | def goodAction(self): |
| 117 | self.bad_actions = 0 |
no test coverage detected