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

BABE Epochs #3028

Merged
merged 128 commits into from
Jul 23, 2019
Merged

BABE Epochs #3028

merged 128 commits into from
Jul 23, 2019

Conversation

Demi-Marie
Copy link
Contributor

@Demi-Marie Demi-Marie commented Jul 5, 2019

This adds support for epochs to BABE. Most of the plumbing is done, but the code is still a WIP.

This is a draft, but I would appreciate review on what I have done so far, so as to know that I am on the right track.

Closes #2435
Closes #2436

core/consensus/babe/src/lib.rs Outdated Show resolved Hide resolved
core/consensus/slots/src/slots.rs Outdated Show resolved Hide resolved
srml/babe/src/lib.rs Outdated Show resolved Hide resolved
srml/babe/src/lib.rs Outdated Show resolved Hide resolved
srml/babe/src/lib.rs Outdated Show resolved Hide resolved
core/consensus/babe/src/lib.rs Outdated Show resolved Hide resolved
srml/babe/src/lib.rs Outdated Show resolved Hide resolved
@kianenigma kianenigma mentioned this pull request Jul 5, 2019
@rphmeier rphmeier changed the title Epochs BABE Epochs Jul 8, 2019
@Demi-Marie Demi-Marie marked this pull request as ready for review July 8, 2019 13:57
.gitignore Outdated Show resolved Hide resolved
Copy link
Contributor

@andresilva andresilva left a comment

Choose a reason for hiding this comment

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

Waiting on a final review from @rphmeier before merging.

fn import_block(
&mut self,
mut block: BlockImportParams<Block>,
new_cache: HashMap<well_known_cache_keys::Id, Vec<u8>>,
Copy link
Contributor

Choose a reason for hiding this comment

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

what is this populated with when the blocks don't come from the authorship task?

Copy link
Contributor

Choose a reason for hiding this comment

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

https://github.com/paritytech/substrate/pull/3028/files#diff-671e8a8d7d8649656f0988fafca31301R689 same thing. the import queue then just create an hashmap and adds those keys in.

@rphmeier rphmeier merged commit a626ba7 into master Jul 23, 2019
@rphmeier rphmeier deleted the demi-sign-epoch-randomness branch July 23, 2019 08:36
@gnunicorn gnunicorn modified the milestones: 2.1, Polkadot Mar 4, 2020
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.

Use the actual genesis block hash in BABE BABE randomness
7 participants