faraday/db
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
..
sqlc chanevents+db: add scid-to-peer index 2026-05-13 14:32:12 +02:00
interfaces.go mod: add sqldbv2 and boilerplate 2026-03-30 11:50:52 +02:00
migrations.go db: add chanevents tables and queries 2026-04-01 15:06:37 +02:00
migrations_test.go db: add chanevents tables and queries 2026-04-01 15:06:37 +02:00
postgres.go mod: add sqldbv2 and boilerplate 2026-03-30 11:50:52 +02:00
schemas.go db: add chanevents tables and queries 2026-04-01 15:06:37 +02:00
sql_migrations.go mod: add sqldbv2 and boilerplate 2026-03-30 11:50:52 +02:00
sqlite.go mod: add sqldbv2 and boilerplate 2026-03-30 11:50:52 +02:00