diff options
author | sommerfeld <sommerfeld@sommerfeld.dev> | 2024-06-30 23:22:10 +0100 |
---|---|---|
committer | sommerfeld <sommerfeld@sommerfeld.dev> | 2024-06-30 23:22:10 +0100 |
commit | d2cc03d3bb969c6d2ed57a443e17218a26cf7292 (patch) | |
tree | 5e00a18455d51b19a3e90f14ccc89c69f9399162 /utils | |
parent | 50185514c9063ba064920b35218a0f819c5d217c (diff) | |
download | viewercount-d2cc03d3bb969c6d2ed57a443e17218a26cf7292.tar.gz viewercount-d2cc03d3bb969c6d2ed57a443e17218a26cf7292.tar.bz2 viewercount-d2cc03d3bb969c6d2ed57a443e17218a26cf7292.zip |
Fix updating outdated events
Since we updated anything matching the filters, we were some times
bringing old versions of replaceable events back to life. The issue is
that those were events that should be discarded since they are outdated
but we still pick them up from some relays.
Thus we need to index them by their naddr coordinate and only keep the
latest event per naddr.
I also improved logging along the way.
Diffstat (limited to 'utils')
0 files changed, 0 insertions, 0 deletions