plugin: Add the plugin we're serializing for in the serializer

We will start annotating some of the in-memory objects with a message
indicating which plugin currently is processing the hook.
This commit is contained in:
Christian Decker
2021-06-02 17:33:23 +02:00
committed by Rusty Russell
parent eeba75ca7c
commit 6062b40a5d
9 changed files with 36 additions and 29 deletions

View File

@@ -232,7 +232,7 @@ static void plugin_hook_call_next(struct plugin_hook_request *ph_req)
NULL,
plugin_hook_callback, ph_req);
hook->serialize_payload(ph_req->cb_arg, req->stream);
hook->serialize_payload(ph_req->cb_arg, req->stream, ph_req->plugin);
jsonrpc_request_end(req);
plugin_request_send(ph_req->plugin, req);
}