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

Function handle_htlc_safe

plugins/lsps-plugin/src/service.rs:144–152  ·  view source on GitHub ↗
(p: &Plugin<State>, v: serde_json::Value)

Source from the content-addressed store, hash-verified

142}
143
144async fn handle_htlc_safe(p: &Plugin<State>, v: serde_json::Value) -> serde_json::Value {
145 match handle_htlc_inner(p, v).await {
146 Ok(response) => response,
147 Err(e) => {
148 error!("HTLC hook error (continuing): {:#}", e);
149 json_continue()
150 }
151 }
152}
153
154async fn handle_htlc_inner(
155 p: &Plugin<State>,

Callers 1

on_htlc_acceptedFunction · 0.85

Calls 2

handle_htlc_innerFunction · 0.85
json_continueFunction · 0.85

Tested by

no test coverage detected