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

babe: exponential backoff on missed blocks #4397

Merged
merged 2 commits into from
Dec 15, 2019
Merged

Conversation

rphmeier
Copy link
Contributor

Swaps out the linear backoff for an exponential one.

@rphmeier rphmeier added the A0-please_review Pull request needs code review. label Dec 15, 2019
@rphmeier rphmeier changed the title Rh exponential backoff babe: exponential backoff on missed blocks Dec 15, 2019
@@ -364,8 +364,10 @@ impl<Value: Decode> Iterator for PrefixIterator<Value> {
type Item = Value;

fn next(&mut self) -> Option<Self::Item> {
match sp_io::storage::next_key(&self.previous_key) {
Some(next_key) if next_key.starts_with(&self.prefix[..]) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this wasn't compiling on 1.39.0.

@gavofyork gavofyork merged commit 6050a8d into master Dec 15, 2019
@gavofyork gavofyork deleted the rh-exponential-backoff branch December 15, 2019 16:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants