mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 13:25:43 +01:00
pyln.client.plugin: set deprcated_apis based on getmanifest.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
c85b14f06d
commit
4ce8f56327
@ -523,6 +523,12 @@ class Plugin(object):
|
|||||||
partial = self._multi_dispatch(msgs)
|
partial = self._multi_dispatch(msgs)
|
||||||
|
|
||||||
def _getmanifest(self, **kwargs):
|
def _getmanifest(self, **kwargs):
|
||||||
|
if 'allow-deprecated-apis' in kwargs:
|
||||||
|
self.deprecated_apis = kwargs['allow-deprecated-apis']
|
||||||
|
else:
|
||||||
|
# 0.9.0 and before didn't offer this, so assume "yes".
|
||||||
|
self.deprecated_apis = True
|
||||||
|
|
||||||
methods = []
|
methods = []
|
||||||
hooks = []
|
hooks = []
|
||||||
for method in self.methods.values():
|
for method in self.methods.values():
|
||||||
|
Loading…
Reference in New Issue
Block a user