mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-31 11:44:25 +01:00
pyln-client, libplugin, rust cln-plugin: explicitly flag that we allow non-numeric JSON ids.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
d5ce5cbab3
commit
ece77840f9
@@ -888,6 +888,7 @@ handle_getmanifest(struct command *getmanifest_cmd,
|
||||
}
|
||||
|
||||
json_add_bool(params, "dynamic", p->restartability == PLUGIN_RESTARTABLE);
|
||||
json_add_bool(params, "nonnumericids", true);
|
||||
|
||||
json_array_start(params, "notifications");
|
||||
for (size_t i = 0; p->notif_topics && i < p->num_notif_topics; i++) {
|
||||
|
||||
@@ -46,6 +46,7 @@ where
|
||||
rpcmethods: HashMap<String, RpcMethod<S>>,
|
||||
subscriptions: HashMap<String, Subscription<S>>,
|
||||
dynamic: bool,
|
||||
nonnumericids: bool,
|
||||
}
|
||||
|
||||
/// A plugin that has registered with the lightning daemon, and gotten
|
||||
@@ -115,6 +116,7 @@ where
|
||||
options: vec![],
|
||||
rpcmethods: HashMap::new(),
|
||||
dynamic: false,
|
||||
nonnumericids: true,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -318,6 +320,7 @@ where
|
||||
hooks: self.hooks.keys().map(|s| s.clone()).collect(),
|
||||
rpcmethods,
|
||||
dynamic: self.dynamic,
|
||||
nonnumericids: true,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -157,6 +157,7 @@ pub(crate) struct GetManifestResponse {
|
||||
pub(crate) subscriptions: Vec<String>,
|
||||
pub(crate) hooks: Vec<String>,
|
||||
pub(crate) dynamic: bool,
|
||||
pub(crate) nonnumericids: bool,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Default, Debug)]
|
||||
|
||||
Reference in New Issue
Block a user