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

Update statetree cache #668

Merged
merged 23 commits into from
Sep 4, 2020
Merged

Update statetree cache #668

merged 23 commits into from
Sep 4, 2020

Conversation

dutterbutter
Copy link
Contributor

Summary of changes
Changes introduced in this pull request:

  • Updates state tree caching to follow lotus

Reference issue to close (if applicable)

Closes #373

Other information and links

Copy link
Contributor

@austinabell austinabell left a comment

Choose a reason for hiding this comment

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

oh man, that error handling is pretty painful now. Looking at this I didn't realize basically all state tree access errors are explicitly fatal (defeating purpose of the Box<dyn std::error::Error>). I can try to review if there is an edge case where an error would be downcasted and made non-fatal if encoding error on go impl

node/rpc/src/wallet_api.rs Outdated Show resolved Hide resolved
vm/interpreter/src/default_runtime.rs Outdated Show resolved Hide resolved
vm/state_tree/src/lib.rs Outdated Show resolved Hide resolved
vm/state_tree/src/lib.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@austinabell austinabell left a comment

Choose a reason for hiding this comment

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

Just those error handling fixes for future proofing and should be good!

vm/state_tree/src/lib.rs Outdated Show resolved Hide resolved
vm/state_tree/src/lib.rs Outdated Show resolved Hide resolved
vm/interpreter/src/default_runtime.rs Outdated Show resolved Hide resolved
@dutterbutter dutterbutter merged commit b54d0ec into main Sep 4, 2020
@dutterbutter dutterbutter deleted the db/statetree branch September 4, 2020 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update StateTree to not flush on snapshot
3 participants