plugin: Restrict plugin notifications only to announced topics

We want to have well-behaved notifications that are clearly announced
during the initialization, kill plugins that don't behave.
This commit is contained in:
Christian Decker
2021-04-28 17:21:14 +02:00
committed by Rusty Russell
parent 62e3358a5b
commit f08ae49134
2 changed files with 33 additions and 6 deletions

View File

@@ -91,6 +91,8 @@ struct plugin {
/* Location of the RPC filename in case we need to defer RPC
* initialization or need to recover from a disconnect. */
const char *rpc_location;
char **notification_topics;
};
/* command_result is mainly used as a compile-time check to encourage you