lnd.xprv/chanfitness
carla 7930ef7cf4
chanfitness: make online period calculation tolerant of duplicates
To get our uptime, we first filter our event log to get online periods.
This change updates this code to be tolerant of consecutive online or
offline events in the log. This will be required for rate limiting,
because we will not record every event for anti-dos reasons, so we could
record an online event, ignore an offline event and then record another
offline event. We could just ignore this duplicate event, but we will
also need this tolerance for when we persist uptime and our peers
can have their last event before restart as an online event and record
another online event when we come back up.
2020-09-08 13:47:16 +02:00
..
chanevent_test.go chanfitness: make online period calculation tolerant of duplicates 2020-09-08 13:47:16 +02:00
chanevent.go chanfitness: make online period calculation tolerant of duplicates 2020-09-08 13:47:16 +02:00
chaneventstore_test.go chanfitness: pass clock in to chaneventstore for testing 2020-09-08 13:47:15 +02:00
chaneventstore_testctx_test.go chanfitness: pass clock in to chaneventstore for testing 2020-09-08 13:47:15 +02:00
chaneventstore.go chanfitness: pass clock in to chaneventstore for testing 2020-09-08 13:47:15 +02:00
log.go chanfitness: Add channel event log structure 2019-10-25 09:51:07 +02:00