mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-12-28 17:44:47 +01:00
7a95e90ee4
Shows what features we use in various contexts, including those added by plugins in getmanifest. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Changelog-Added: Plugin: `feature_set` object added to `init`
18 lines
292 B
Python
Executable File
18 lines
292 B
Python
Executable File
#!/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()
|