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

Function on_htlc_accepted

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

Source from the content-addressed store, hash-verified

135}
136
137async fn on_htlc_accepted(
138 p: Plugin<State>,
139 v: serde_json::Value,
140) -> Result<serde_json::Value, anyhow::Error> {
141 Ok(handle_htlc_safe(&p, v).await)
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 {

Callers

nothing calls this directly

Calls 1

handle_htlc_safeFunction · 0.85

Tested by

no test coverage detected