Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
ethereum/ratelimit: Fix bug in for timezones behind UTC #505
The following error was occurring at certain times of day for timezones that are behind UTC:
To be more specific, the bug seems to occur whenever the current local time is before midnight, but the time in UTC is the next day after midnight. When Mesh enters this state, no Ethereum RPC requests are allowed and Mesh cannot really function effectively.
@fabioberger I can manually confirm this fixes the bug, but ideally we should write a regression test to prevent this from popping up again. I can't figure out how to do that, and the existing tests always pass in my local timezone, regardless of time of day. Any ideas?