JSON-RPC: getmanifest passes allow-deprecated-apis flag.

This allows plugins to choose how to present things in getmanifest.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Added: plugins: `getmanifest` may now include "allow-deprecated-apis" boolean flag.
Changelog-Deprecated: plugins: `getmanifest` without any parameters; plugins should accept any parameters for future use.
This commit is contained in:
Rusty Russell
2020-08-06 09:57:48 +09:30
parent 930e294801
commit 151bc47583
3 changed files with 8 additions and 4 deletions

View File

@@ -57,9 +57,10 @@ interface.
### The `getmanifest` method
The `getmanifest` method is required for all plugins and will be called on
startup without any params. It MUST return a JSON object similar to
this example:
The `getmanifest` method is required for all plugins and will be
called on startup with optionsl parameters (in particular, it may have
`allow-deprecated-apis: false`, but you should accept others). It
MUST return a JSON object similar to this example:
```json
{