mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-23 00:54:20 +01:00
A canned lightningd/plugins is used to test against. This allows faster and more deterministic outcomes. Changelog-None
18 lines
274 B
Python
Executable File
18 lines
274 B
Python
Executable File
#!/usr/bin/env python3
|
|
from pyln.client import Plugin
|
|
|
|
plugin = Plugin()
|
|
|
|
|
|
@plugin.init()
|
|
def init(options, configuration, plugin, **kwargs):
|
|
plugin.log("testplug initialized")
|
|
|
|
|
|
@plugin.method("testmethod")
|
|
def testmethod(plugin):
|
|
return ("I live.")
|
|
|
|
|
|
plugin.run()
|