Skip to content

Instantly share code, notes, and snippets.

@cdecker

cdecker/probe.py Secret

Created September 13, 2019 20:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cdecker/e7ce7c06fb0af786c340fa8ef528a4d2 to your computer and use it in GitHub Desktop.
Save cdecker/e7ce7c06fb0af786c340fa8ef528a4d2 to your computer and use it in GitHub Desktop.
#!/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