faraday/db/sqlc
bitromortac 2363173325 chanevents+db: add scid-to-peer index
Add ScidToPeerMap, which materialises a snapshot of every short channel
id paired with the pubkey of the channel's remote peer. Forwarding-data
sources index events by short channel id, but downstream analyses need
to attribute behaviour to the peer, not the channel. The map skips
channels whose short channel id is still zero (unconfirmed), so callers
see only fully advertised channels. Coverage extends TestStore with a
two-channel fixture pinning the join.
2026-05-13 14:32:12 +02:00
..
migrations db+chanevents: change to paginated GetChannelEvents 2026-05-08 20:13:58 +02:00
queries chanevents+db: add scid-to-peer index 2026-05-13 14:32:12 +02:00
chanevents.sql.go chanevents+db: add scid-to-peer index 2026-05-13 14:32:12 +02:00
db.go mod: add sqldbv2 and boilerplate 2026-03-30 11:50:52 +02:00
db_custom.go db: add chanevents tables and queries 2026-04-01 15:06:37 +02:00
models.go chanevents+db: add sync row 2026-04-02 12:25:36 +02:00
querier.go chanevents+db: add scid-to-peer index 2026-05-13 14:32:12 +02:00