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

Function release

plugins/examples/cln-plugin-reentrant.rs:30–33  ·  view source on GitHub ↗

Release all waiting HTLCs

(p: Plugin<State>, _v: serde_json::Value)

Source from the content-addressed store, hash-verified

28
29/// Release all waiting HTLCs
30async fn release(p: Plugin<State>, _v: serde_json::Value) -> Result<serde_json::Value, Error> {
31 p.state().tx.send(()).unwrap();
32 Ok(json!("Released!"))
33}
34
35async fn htlc_accepted_handler(
36 p: Plugin<State>,

Callers

nothing calls this directly

Calls 3

stateMethod · 0.80
unwrapMethod · 0.45
sendMethod · 0.45

Tested by

no test coverage detected