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

State fixes and improvements #78

Merged
merged 12 commits into from
Feb 19, 2019

Conversation

zer0main
Copy link
Contributor

No description provided.

@zer0main zer0main force-pushed the go-62-sync-state branch 3 times, most recently from 7a47e05 to 5546101 Compare February 14, 2019 21:59
@zer0main zer0main force-pushed the go-62-sync-state branch 2 times, most recently from f1cdcc7 to d0f7f09 Compare February 15, 2019 11:10
These changes must be written directly to DB, because deleting
outdated records always makes sense.
Successfully tested possibility to continue importing after Ctrl-C termination.
@zer0main zer0main changed the title Sync [wip] State fixes and improvements Feb 15, 2019
Copy link
Member

@alexeykiselev alexeykiselev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that keys.go should be not in proto package but in state package.

@zer0main
Copy link
Contributor Author

I think that keys.go should be not in proto package but in state package.

The problem is that proto package uses keys too, and state already imports proto.

Copy link
Member

@alexeykiselev alexeykiselev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe better remove the keyvalue package completely? And move files to state package?

pkg/storage/accountsstorage_test.go Outdated Show resolved Hide resolved
pkg/importer/importer.go Outdated Show resolved Hide resolved
@alexeykiselev alexeykiselev merged commit 924fa4a into wavesplatform:master Feb 19, 2019
Frozen pushed a commit that referenced this pull request Mar 4, 2019
* Sync [wip]

* Accounts storage: fix filterHistory()

These changes must be written directly to DB, because deleting
outdated records always makes sense.

* BlockReadWriter: do not remove tx IDs in rollback

See comment.

* Add option to apply from certain height

Successfully tested possibility to continue importing after Ctrl-C termination.

* Accounts storage: do not store more than ROLLBACK_MAX blocks

* GO-61: Reduntan mutex removed (#75)

* GO-63: Correct termination, fixed binary search, fixed error messages and return codes (#76)

* Rollback(): remove transaction IDs correctly

Remove separate tx IDs file. Use main blockchain file to get IDs to remove.

* Use camelCase for constants

* Importer: use fixed-size byte array for block

* Combine all related packages into single state
@zer0main zer0main deleted the go-62-sync-state branch June 15, 2020 12:08
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.

2 participants