MCPcopy Index your code
hub / github.com/HelloZeroNet/ZeroNet / badAction

Method badAction

src/Connection/Connection.py:109–114  ·  view source on GitHub ↗
(self, weight=1)

Source from the content-addressed store, hash-verified

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

Callers 10

routeMethod · 0.80
actionUpdateMethod · 0.80
handleGetFileMethod · 0.80
actionPexMethod · 0.80
actionListModifiedMethod · 0.80
actionGetHashfieldMethod · 0.80
actionFindHashIdsMethod · 0.80
actionSetHashfieldMethod · 0.80
actionUnknownMethod · 0.80
actionSetPiecefieldsMethod · 0.80

Calls 1

closeMethod · 0.95

Tested by

no test coverage detected