MCPcopy Create free account
hub / github.com/ElementsProject/lightning / reject

Function reject

tests/plugins/reject.py:31–35  ·  view source on GitHub ↗

Mark a given node_id as reject for future connections.

(node_id, plugin)

Source from the content-addressed store, hash-verified

29
30@plugin.method('reject')
31def reject(node_id, plugin):
32 """Mark a given node_id as reject for future connections.
33 """
34 print("Rejecting connections from {}".format(node_id))
35 plugin.reject_ids.append(node_id)
36
37
38plugin.run()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected