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

Function payment_getblockheight_success

plugins/libplugin-pay.c:257–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255}
256
257static struct command_result *
258payment_getblockheight_success(struct command *cmd,
259 const char *buffer,
260 const jsmntok_t *toks,
261 struct payment *p)
262{
263 const jsmntok_t *blockheighttok =
264 json_get_member(buffer, toks, "blockheight");
265 json_to_number(buffer, blockheighttok, &p->start_block);
266 payment_continue(p);
267 return command_still_pending(cmd);
268}
269
270#define INVALID_BLOCKHEIGHT UINT32_MAX
271

Callers

nothing calls this directly

Calls 4

payment_continueFunction · 0.85
command_still_pendingFunction · 0.70
json_get_memberFunction · 0.50
json_to_numberFunction · 0.50

Tested by

no test coverage detected