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

Function bwatch_last_block

plugins/bwatch/bwatch_store.c:248–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246}
247
248const struct block_record_wire *bwatch_last_block(const struct bwatch *bwatch)
249{
250 if (tal_count(bwatch->block_history) == 0)
251 return NULL;
252
253 return &bwatch->block_history[tal_count(bwatch->block_history) - 1];
254}
255
256void bwatch_load_block_history(struct command *cmd, struct bwatch *bwatch)
257{

Callers 3

bwatch_remove_tipFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected