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

Resync rewrite #18

Merged
merged 8 commits into from
Mar 13, 2017
Merged

Resync rewrite #18

merged 8 commits into from
Mar 13, 2017

Conversation

chappjc
Copy link
Member

@chappjc chappjc commented Mar 9, 2017

Addresses #17

This addresses the insane memory usage of rebuilddb. Maybe also resync from arbitrary height instead of 0.

chappjc added 4 commits March 11, 2017 23:56
Rewind ffldb best node if it is ahead of SQL db.
Improve logging.
Always scan to current best heigh, using rpc client call to getbestblock at the end of each iteration. This should now be good to plug into dcrdata daemon.
TODO: decide when to just nuke stake ffldb if it's far ahead of SQL db.
@chappjc chappjc added this to the 0.0.2 milestone Mar 13, 2017
@chappjc chappjc changed the title WIP - Resync rewrite Resync rewrite Mar 13, 2017
@chappjc
Copy link
Member Author

chappjc commented Mar 13, 2017

Seems to work as intended. However, it's complicated and a big change.

Now requires an on-disk ticket database (leveldb) to be able to get live tickets at the last recorded height before dcrdata exited.

@chappjc
Copy link
Member Author

chappjc commented Mar 13, 2017

Also note that glide install is required before build as depends changed.

@chappjc chappjc merged commit 0acb52b into master Mar 13, 2017
@chappjc chappjc deleted the resync-rewrite branch March 13, 2017 03:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant