Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
e70f3bd
babe: initial implementation of secondary slots
andresilva Aug 13, 2019
65370d2
babe: validate secondary slot author
andresilva Aug 13, 2019
086b01d
babe: implement weight based fork choice
andresilva Aug 13, 2019
86468f3
babe: remove unused
andresilva Aug 13, 2019
46005e9
aura: cleanup unused imports
andresilva Aug 13, 2019
1fb767f
babe: pass in parent weight when authoring and verifying
andresilva Aug 13, 2019
36d7896
babe: use epoch randomness for picking secondary slot authors
andresilva Aug 13, 2019
e277fcf
babe: fix tests
andresilva Aug 13, 2019
1643b71
babe: fix wasm build
andresilva Aug 13, 2019
0da1733
babe: node-side code for disabling secondary slots
andresilva Aug 13, 2019
730c328
babe: allow enabling/disabling secondary slots from runtime
andresilva Aug 13, 2019
3568ce8
babe: fix test
andresilva Aug 13, 2019
763c617
babe: use blake2_256 for secondary slot assignment
andresilva Aug 13, 2019
8c0ff02
babe: run block initialization in should_end_session
andresilva Aug 13, 2019
3b38b14
node: increase slot duration to 6s
andresilva Aug 13, 2019
ca6b9a0
babe: add docs
andresilva Aug 15, 2019
b5b2d6e
node: bump spec_version
andresilva Aug 15, 2019
fed3e6f
Apply suggestions from code review
andresilva Aug 15, 2019
f28273c
babe: simplify secondary slot assignment calculation
andresilva Aug 15, 2019
382aefa
Merge branch 'master' into andre/aurababeous
andresilva Aug 16, 2019
cca85f9
babe: remove unnecessary comment
andresilva Aug 16, 2019
8a95966
node: bump spec_version
andresilva Aug 16, 2019
11fe7a6
Merge branch 'master' into andre/aurababeous
andresilva Aug 16, 2019
4f75dd8
babe: fix bad merge
andresilva Aug 16, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
babe: fix bad merge
  • Loading branch information
andresilva committed Aug 16, 2019
commit 4f75dd850bfc83e46af491f69a04d7772e926dff
2 changes: 1 addition & 1 deletion core/consensus/babe/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1550,7 +1550,7 @@ pub mod test_helpers {
C: ProvideRuntimeApi + ProvideCache<B>,
C::Api: BabeApi<B>,
{
let epoch = match epoch(client, at).unwrap() {
let epoch = match epoch(client, &BlockId::Hash(parent.hash())).unwrap() {
MaybeSpanEpoch::Regular(epoch) => epoch,
_ => unreachable!("it is always Regular epoch on full nodes"),
};
Expand Down