Closed
Description
Time calculations could be wrong when device resumes from sleep. This is important since we are doing payment checks based on time.
References for this issue.
- https://go.googlesource.com/proposal/+/master/design/12914-monotonic.md
- time: use monotonic clock to measure elapsed time golang/go#12914
- time: Sub is inaccurate after computer has slept golang/go#23178
- runtime: use CLOCK_BOOTIME, not CLOCK_MONOTONIC, when possible golang/go#24595
- time: NewTimer firing later if computer sleeps, how to use wall clock? golang/go#35012
- time: add ExternalNow, etc for external time and timers golang/go#36141
WireGuard fixed it by pathing Go. See here.