Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Daemon+WalletBackend timestamp adjustments #704

Open
zpalmtree opened this Issue Jan 26, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@zpalmtree
Copy link
Collaborator

zpalmtree commented Jan 26, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.