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

Function json_continue_forward

plugins/lsps-plugin/src/service.rs:229–240  ·  view source on GitHub ↗
(
    payload: Vec<u8>,
    forward_to: Vec<u8>,
    extra_tlvs: Vec<u8>,
)

Source from the content-addressed store, hash-verified

227}
228
229fn json_continue_forward(
230 payload: Vec<u8>,
231 forward_to: Vec<u8>,
232 extra_tlvs: Vec<u8>,
233) -> serde_json::Value {
234 serde_json::json!({
235 "result": "continue",
236 "payload": hex::encode(payload),
237 "forward_to": hex::encode(forward_to),
238 "extra_tlvs": hex::encode(extra_tlvs)
239 })
240}
241
242fn json_fail(failure_code: &str) -> serde_json::Value {
243 serde_json::json!({

Callers 1

decision_to_responseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected