MCPcopy Create free account
hub / github.com/ElementsProject/elements / is_banned

Method is_banned

test/functional/rpc_setban.py:18–19  ·  view source on GitHub ↗
(self, node, addr)

Source from the content-addressed store, hash-verified

16 self.extra_args = [[],[]]
17
18 def is_banned(self, node, addr):
19 return any(e['address'] == addr for e in node.listbanned())
20
21 def run_test(self):
22 # Node 0 connects to Node 1, check that the noban permission is not granted

Callers 1

run_testMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected