MCPcopy Create free account
hub / github.com/ElementsProject/lightning / peer_connected_handler

Function peer_connected_handler

plugins/examples/cln-plugin-startup.rs:163–169  ·  view source on GitHub ↗
(
    _p: Plugin<()>,
    v: serde_json::Value,
)

Source from the content-addressed store, hash-verified

161}
162
163async fn peer_connected_handler(
164 _p: Plugin<()>,
165 v: serde_json::Value,
166) -> Result<serde_json::Value, Error> {
167 log::info!("Got a connect hook call: {}", v);
168 Ok(json!({"result": "continue"}))
169}
170
171async fn test_log_levels(
172 _p: Plugin<()>,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected