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

Function bwatch_send_block_processed

plugins/bwatch/bwatch_interface.c:163–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161}
162
163struct command_result *bwatch_send_block_processed(struct command *cmd)
164{
165 struct bwatch *bwatch = bwatch_of(cmd->plugin);
166 struct out_req *req;
167
168 req = jsonrpc_request_start(cmd, "block_processed",
169 block_processed_ack, block_processed_err,
170 NULL);
171 json_add_u32(req->js, "blockheight", bwatch->current_height);
172 json_add_string(req->js, "blockhash",
173 fmt_bitcoin_blkid(tmpctx, &bwatch->current_blockhash));
174 return send_outreq(req);
175}
176
177/*
178 * ============================================================================

Callers

nothing calls this directly

Calls 5

bwatch_ofFunction · 0.85
json_add_u32Function · 0.85
fmt_bitcoin_blkidFunction · 0.85
json_add_stringFunction · 0.50
send_outreqFunction · 0.50

Tested by

no test coverage detected