Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
I will stall this for now halfway through integrating BABE until paritytech/substrate#3296 lands. There seems to a lot of assumptions made in the polkadot code about crypto concrete types which might be affected by the new key mgmt system. |
|
@kianenigma will this include the content of #342 ? |
Ideally yes, It is on my todo list up top. |
Co-Authored-By: Robert Habermeier <rphmeier@gmail.com>
collator/src/lib.rs
Outdated
| let authorities = try_fr!(api.authorities(&id)); | ||
| // TODO: double check this. It makes sense bc other occurances of `authorities` | ||
| // has been refactored to this. | ||
| let authorities = try_fr!(api.validators(&id)); |
primitives/src/lib.rs
Outdated
| /// that 32 bits may be multiplied with a balance in 128 bits without worrying about overflow. | ||
| pub type Balance = u128; | ||
|
|
||
| // TODO: I don't get why this was defined here. It was aura so I change it to babe but regardless of that |
There was a problem hiding this comment.
yeah, I still agree with my note. If the crypto key type is defined inside the babe module and exported via babe::AuthorityId then all of them should have the same look. sth like:
pub type BabePair = babe::AuthorityPair;
pub type BabeId = babe::AuthorityId;
| timestamp = { package = "srml-timestamp", git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-master" } | ||
| treasury = { package = "srml-treasury", git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-master" } | ||
| version = { package = "sr-version", git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-master" } | ||
| babe = { package = "srml-babe", git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-master" } |
There was a problem hiding this comment.
I hate this myself. Should refactor them to:
babecrate should always point to thecoreportionsrml_babeshould point to the srml portion.
validation/src/lib.rs
Outdated
| let authorities = self.client.runtime_api().authorities(&id)?; | ||
| // TODO: This used to use AuraApi and now it uses validators from parachainHost, as | ||
| // recommended by Rob. Please double and triple check. | ||
| let authorities = self.client.runtime_api().validators(&id)?; |
|
I didn't manage to get an alice/bob chain validating after the key refactoring was put in. the chain spec needs a look taken at |
|
I got alice authoring blocks. Didn't get her to connect to Bob, though. I'd suggest we merge this already and deal with anything else in a follow-up PR. There are other PRs blocked on unrelated changes within this. |
* verify justifications from runtime * unreachable
Closes #221
TODO:
FindAuthor.aura. Both should be replaced withbabenow.system::CheckGenesis<Runtime>--devchain workscc @jacogr I am doing the testing with UI along the way but if you also want to give it a try would be great.