Change weight template outputs to (x * constants::WEIGH_PER_NANOS) #11233
Change weight template outputs to (x * constants::WEIGH_PER_NANOS) #11233hzy1919 wants to merge 21 commits intoparitytech:masterfrom
Conversation
…T_PER_NANOS) which is semantically more clear
|
Thanks @hzy1919! |
ggwpez
left a comment
There was a problem hiding this comment.
Lets see if the benchbot works here.
|
/bench runtime pallet pallet_balances |
ok, I will handle it . |
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
|
I will push the weights of a single pallet, to see that it all works. Then we should be good. |
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
|
hi @ggwpez ,the CI workflows seems failed a few days ago, I am not sure how to solve it , Can you provide some help? |
|
The polkadot/cumulus error is unrelated i think. You can try to merge master into your branch and then push (not force push). |
ggwpez
left a comment
There was a problem hiding this comment.
I will push some weights again.
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
|
I'm sorry, but end of the day, I don't think I really want this. I don't see the advantage here. We are strictly adding more complexity and characters to each file. Also making assumptions which may not always be true, for example that there are no sub-nanosecond weights. What is more simple than a raw number? |
|
As @shawntabrizi reminded me; We will have new weights soon #10918 so it probably makes not much sense now. |
|
@hzy1919 if you still want a tip for the work you did, please include your polkadot address. |
|
Well,it doesn't matter. I'm glad to see a better solution for it . @ggwpez @shawntabrizi Thanks for your patient help ! And i hope i can make more contributions later. 😄 |
|
/tip small |
|
@shawntabrizi A small tip was successfully submitted for hzy1919 (15wPGN5vysDW1HYWfZRjQQhv2ktpfLMMuiJNMRKcodwPfM14 on polkadot). https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Frpc.polkadot.io#/treasury/tips |
Change the weight template currently outputs from (x as Weight) to (x * constants::WEIGHT_PER_NANOS) which is semantically more clear. Related #11215 .
polkadot address: 15wPGN5vysDW1HYWfZRjQQhv2ktpfLMMuiJNMRKcodwPfM14