-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Conversation
@jacogr Renamed the weight type to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good!
I believe I have ironed out all the kinks, seems to be working fine. @rphmeier mentioned that some clarification is needed regarding the threshold calculation from the research team. |
2995347
to
cbc3aa6
Compare
d594b06
to
6c4681b
Compare
c31b7f5
to
40c8ced
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BABE needs to buffer authority sets and randomness by 1 epoch. I will fix this.
@@ -232,7 +237,10 @@ fn run_one_test() { | |||
// wait for all finalized on each. | |||
let wait_for = futures::future::join_all(import_notifications); | |||
|
|||
let drive_to_completion = futures::future::poll_fn(|| { net.lock().poll(); Ok(Async::NotReady) }); | |||
let drive_to_completion = futures::future::poll_fn(|| { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this hunk should be reverted, since it is just a style fix and conflicts with #3146.
bcad41e
to
06f8113
Compare
I think all the issues we have discussed offline have been fixed. For the threshold calculation, the exponentation is done in The light client is currently not working, I will file some issues for follow-up PRs to fix it. I updated the sync integration test to generate valid BABE predigests but disabled the light clients for now. |
2cc5f6c
to
309aaae
Compare
Depends on #3028.
This PR updates the node to use BABE instead of AuRa for block authoring. Additionally, I made some changes to the
srml-babe
module, notably it now tracks the current slot and the epoch start slot. This is used to implementShouldEndSession
and also for the node to track the expected last epoch slot accurately.