| 22 | #include <plugins/libplugin.h> |
| 23 | |
| 24 | struct 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 | |
| 40 | struct chain_event **list_chain_events(const tal_t *ctx, |
| 41 | const struct bkpr *bkpr, |
no test coverage detected