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

Function list_chain_events_timebox

plugins/bkpr/recorder.c:24–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22#include <plugins/libplugin.h>
23
24struct chain_event **list_chain_events_timebox(const tal_t *ctx,
25 const struct bkpr *bkpr,
26 struct command *cmd,
27 u64 start_time,
28 u64 end_time)
29{
30 return chain_events_from_sql(ctx, bkpr, cmd,
31 SELECT_CHAIN_EVENTS
32 " WHERE timestamp > %"PRIu64
33 " AND timestamp <= %"PRIu64
34 " AND created_index <= %"PRIu64
35 " ORDER BY timestamp, created_index;",
36 start_time, end_time,
37 bkpr->chainmoves_index);
38}
39
40struct chain_event **list_chain_events(const tal_t *ctx,
41 const struct bkpr *bkpr,

Callers 2

list_chain_eventsFunction · 0.85
list_income_eventsFunction · 0.85

Calls 1

chain_events_from_sqlFunction · 0.85

Tested by

no test coverage detected