Browse Source
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`travis-debug
Rusty Russell
5 years ago
3 changed files with 37 additions and 0 deletions
@ -0,0 +1,17 @@ |
|||
#!/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() |
Loading…
Reference in new issue