7930ef7cf4
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. |
||
---|---|---|
.. | ||
chanevent_test.go | ||
chanevent.go | ||
chaneventstore_test.go | ||
chaneventstore_testctx_test.go | ||
chaneventstore.go | ||
log.go |