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

Method register_handler

plugins/lsps-plugin/src/core/lsps2/service.rs:41–44  ·  view source on GitHub ↗
(&self, router: &mut JsonRpcRouterBuilder)

Source from the content-addressed store, hash-verified

39 H: Lsps2Handler + Send + Sync + 'static,
40{
41 fn register_handler(&self, router: &mut JsonRpcRouterBuilder) {
42 register_handler!(router, self, "lsps2.get_info", handle_get_info);
43 register_handler!(router, self, "lsps2.buy", handle_buy, with_peer);
44 }
45
46 fn protocol(&self) -> u8 {
47 2

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected