Skip to content

Instantly share code, notes, and snippets.

@cdecker

cdecker/probe.py Secret

Created September 13, 2019 20:53
Embed
What would you like to do?
#!/usr/bin/env python3
from lightning import Plugin
plugin = Plugin()
@plugin.method("probe")
def probe(plugin, node_id=None, **kwargs):
"""Probe a network by sending a payment to it.
"""
print("This is going to the logs")
return "Hello world"
plugin.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment