mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-20 02:27:51 +01:00
18 lines
292 B
Python
18 lines
292 B
Python
|
#!/usr/bin/env python3
|
||
|
from pyln.client import Plugin
|
||
|
|
||
|
plugin = Plugin()
|
||
|
|
||
|
|
||
|
@plugin.init()
|
||
|
def init(options, configuration, plugin):
|
||
|
plugin.feature_set = configuration['feature_set']
|
||
|
|
||
|
|
||
|
@plugin.method('getfeatureset')
|
||
|
def getfeatureset(plugin):
|
||
|
return plugin.feature_set
|
||
|
|
||
|
|
||
|
plugin.run()
|