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

Function bwatch_send_watch_revert

plugins/bwatch/bwatch_interface.c:91–103  ·  view source on GitHub ↗

Tell one owner that a previously-reported watch_found was rolled back. */

Source from the content-addressed store, hash-verified

89
90/* Tell one owner that a previously-reported watch_found was rolled back. */
91void bwatch_send_watch_revert(struct command *cmd,
92 const char *owner,
93 u32 blockheight)
94{
95 struct command *aux = aux_command(cmd);
96 struct out_req *req;
97
98 req = jsonrpc_request_start(aux, "watch_revert",
99 notify_ack, notify_ack, NULL);
100 json_add_string(req->js, "owner", owner);
101 json_add_u32(req->js, "blockheight", blockheight);
102 send_outreq(req);
103}
104
105/*
106 * ============================================================================

Callers 1

Calls 4

json_add_u32Function · 0.85
aux_commandFunction · 0.50
json_add_stringFunction · 0.50
send_outreqFunction · 0.50

Tested by

no test coverage detected