Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Daemon+WalletBackend timestamp adjustments #704
The current /getwalletsyncdata rounds a timestamp to midnight. Depending on what time of the day you start a fresh wallet, you may have no blocks to grab (we need to roll back a bit more than we currently do with the timestamp adjustment), or too many (since it's rounding to midnight which is quite far away).
We should instead just respect the timestamp given, and have a better adjust so we always sync about 100 or so blocks to be safe.
Might require a bit of work, since the timestamp fetching routines I believe hit the two DB caches, which aren't the most fun to work with.