-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Companion for 7155 (WeightInfo for Babe and Grandpa) #1736
Conversation
I feels slightly afraid of using I'm not sure what is best, anyway I'm ok to use |
I agree with @thiolliere that this could be a bit dangerous. I think just copying the weights from substrate here would probably be a sensible thing to do, or maybe keep the same weights in substrate but implemented for some struct rather than |
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.
yes I'm ok to address it in follow-up PR
What is the difference between using In general, these weights were hardcoded into substrate before. The way it is written, nothing about the behavior of how these weights would update has changed. |
There is no practical difference, but maybe |
Waiting for commit status. |
Merge failed: |
bot merge |
Trying merge. |
* master: Update to substrate 2.0 (#1744) Companion: Handle construct_runtime breaking change. (#1692) Companion for `ModuleToIndex` to `PalletInfo` rename (#1743) Companion for substrate/pull/7161 (#1739) Companion for 7155 (WeightInfo for Babe and Grandpa) (#1736) Companion PR for #7136 (WeightInfo for Session / Offences) (#1735)
This simply adds the
WeightInfo
associated type to the Babe and Grandpa traits.It uses the default values from Substrate which are still custom written.
paritytech/substrate#7155