-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Copy weight files into node-template #11098
Conversation
Thanks for the help! Could you please rename the package to |
I'm on it. Sorry about the late response. |
That one point is still outstanding:
I think we can also merge as-is and then I do that together with an update of the weights. |
I'd like this. Not sure I fully understand the code so well and would love to be involved 🙏 |
/tip small |
Please fix the following problems before calling the tip bot again:
|
@tifecool if you would like a small tip in KSM or DOT, please include your address in the PR description |
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
done ❤️ |
/tip small |
A small tip was successfully submitted for tifecool (1s51dYXziQwTnSnModErKfra3TeEsVipqzY846CLCTEXtHJ on polkadot). |
I thought about this again and think that it is better to not create a new crate, since we somehow need to keep the balance between completeness and understandability. |
So how should we implement it instead? |
// Re-export the non-default weights. | ||
pub use weights::*; |
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.
Id rather we dont have this re-export for clarity where things are coming from
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.
Maybe we could rename the weights.rs to template_weights.rs instead? @ggwpez
In general I don't think the node-template needs custom weight stuff. It adds quite a bit of complexity, and doesn't really make sense since users are likely to change the node template right away, and thus invalidate the weights. Probably best to just get the default weights from the main substrate node at this time. |
PR attempts to solve issue #11090
Copied weight files and TOML from support.
polkadot address: 1s51dYXziQwTnSnModErKfra3TeEsVipqzY846CLCTEXtHJ