Commit Graph

8 Commits

Author SHA1 Message Date
Christian Decker
b7f6796315 historian: Make the destination parameter to snapshot load optional
This is a rather long option, and if `lightning-cli` is configured
correctly we should be able to extract this information directly from
it without problems. This adds auto-discovery based on `lightning-cli`
which will to the right thing™
2021-01-22 18:00:50 +01:00
Christian Decker
4630eba3f8 historian: Refactor the snapshot message retrieval
We're going to use it in the web interface soon.
2021-01-22 18:00:50 +01:00
Christian Decker
3daa588be0 historian: Remove DATETIME conversion and add timestamp to grouping
Postgres requires the HAVING statement to match a GROUP BY statement and the
DATETIME function doesn't exist on postgres.
2021-01-22 18:00:16 +01:00
Christian Decker
3f5dc35ab1 historian: Add backup command for lnresearch 2021-01-22 18:00:16 +01:00
Christian Decker
b1338ef5d4 historian: Add loading functionality to historian-cli 2021-01-22 18:00:16 +01:00
Christian Decker
2e0963cf40 historian: Switch to nested queries from massive joins
Not only is this more correct, but it's also quicker, since we avoid the huge
joins.
2021-01-22 18:00:16 +01:00
Christian Decker
c22562bd7f historian: Add a command to read a snapshot and hexdump it to stdout 2021-01-22 18:00:16 +01:00
Christian Decker
efdf985352 historian: First version of the cli 2021-01-22 18:00:16 +01:00