Open Lezek123 opened 1 year ago
Great write up. Solution 1 is fairly straightforward - https://github.com/Joystream/joystream/pull/4385
But Solution 2 is obviously the correct approach. How long would it take to implement the fixes?
But Solution 2 is obviously the correct approach. How long would it take to implement the fixes?
I think I can fix issues identified in https://github.com/Joystream/joystream/pull/4374 within an hour
There are values in the genesis config that affect the weight of some extrinsics.
One example of this is the
project-token
's bloat bond. If its value is0
, then no funds are being transferred when a newproject-token
account is created. If it's non-zero, there is an additional transfer involved in this case, which means there are additionalread
andwrite
operations.As discoverd in https://github.com/Joystream/joystream/pull/4374, a few benchmarks produce different weight functions when those genesis config values are changed.
Why is this a problem?
--dev
chain, which has a slightly different genesis config than production chainWhat are the solutions?
project-token
example, we assume the bloat bond is always non-zero. This is already the case for most of the benchmarks, there are just a few where this rule was not applied (simply because a specific case was overlooked), likecontent.issue_creator_token
.