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

Remove panickers from trie iterators #2209

Merged
merged 2 commits into from
Sep 21, 2016
Merged

Remove panickers from trie iterators #2209

merged 2 commits into from
Sep 21, 2016

Conversation

rphmeier
Copy link
Contributor

Makes use of it to detect when a prematurely-started periodic snapshot has failed because the state it was snapshotting got pruned out.

allows proper recovery from a premature periodic snapshot
@rphmeier rphmeier added A0-pleasereview 🤓 Pull request needs code review. M4-core ⛓ Core client code / Rust. labels Sep 20, 2016
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 85.264% when pulling 3e08b9c on trie-iter-result into 48be609 on master.

@rphmeier
Copy link
Contributor Author

I wish there were a better heuristic for "are we actually at the head of the chain" than "are we idle or has the block queue got less than 3 entries". Maybe keep track of the best block number we've seen our (reliable) peers broadcast and compare it to where we are now?

@gavofyork
Copy link
Contributor

indeed - sync subsystem should have sufficient information to be able to give an accurate answer.

@gavofyork gavofyork added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Sep 21, 2016
@gavofyork gavofyork merged commit a100b9d into master Sep 21, 2016
@gavofyork gavofyork deleted the trie-iter-result branch September 21, 2016 10:56
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