Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Propagate trie errors upwards from State #4655

Merged
merged 8 commits into from
Feb 26, 2017
Merged

Propagate trie errors upwards from State #4655

merged 8 commits into from
Feb 26, 2017

Conversation

rphmeier
Copy link
Contributor

Goes after #4632

Allows us to execute transactions on incomplete tries without issue.

@rphmeier rphmeier added A0-pleasereview 🤓 Pull request needs code review. M4-core ⛓ Core client code / Rust. labels Feb 23, 2017
@rphmeier
Copy link
Contributor Author

rphmeier commented Feb 23, 2017

(To support non trie-based backends we might want an associated Error type on state::Backend and Ext)

@@ -186,8 +195,8 @@ impl AccountEntry {
/// checkpoint can be discateded with `discard_checkpoint`. All of the orignal
/// backed-up values are moved into a parent checkpoint (if any).
///
pub struct State {
db: StateDB,
pub struct State<B> {
Copy link
Collaborator

Choose a reason for hiding this comment

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

why not add B: Backend here too?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's the same commit as #4632 as this builds upon that, we can ice this until it's in.

@arkpar arkpar added A6-mustntgrumble 💦 Pull request has areas for improvement. The author need not address them before merging. A5-grumble 🔥 Pull request has minor issues that must be addressed before merging. A0-pleasereview 🤓 Pull request needs code review. and removed A0-pleasereview 🤓 Pull request needs code review. A6-mustntgrumble 💦 Pull request has areas for improvement. The author need not address them before merging. A5-grumble 🔥 Pull request has minor issues that must be addressed before merging. labels Feb 25, 2017
@arkpar arkpar added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Feb 25, 2017
@gavofyork gavofyork merged commit 1bf2b27 into master Feb 26, 2017
@gavofyork gavofyork deleted the state-error branch February 26, 2017 12:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well. M4-core ⛓ Core client code / Rust.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants