plugin: Allow custom features only if the plugin is not dynamic

This is in order to avoid having to update featurebits as plugins get
activated and deactivated.
This commit is contained in:
Christian Decker
2020-02-03 13:04:16 +01:00
committed by Rusty Russell
parent 5bd419d9fd
commit 4737977128
2 changed files with 15 additions and 0 deletions

View File

@@ -5,6 +5,7 @@ from pyln.client import Plugin
# Register a different set feature of feature bits for each location so we can
# later check that they are being passed correctly.
plugin = Plugin(
dynamic=False,
init_features=1 << 101,
node_features=1 << 103,
invoice_features=1 << 105,