Open jakmeier opened 2 years ago
With updated estimations and properly accounting for receipt creation costs, things don't even look that bad.
Or in a graph:
I think we should wait until we have a better IO cost estimation setup before we do anything here.
Adding a function access key has two gas cost parameters associated with it. As of v53, this are the values:
action_creation_config.add_key_cost.function_call_cost
action_creation_config.add_key_cost.function_call_cost_per_byte
However, estimations show that the true costs per-byte are significantly higher. (The base costs are ok.) This needs to be fixed, as undercharging like this can lead to performance degradation of the network.
Luckily, each access key is limited to 2kB, thus adding a new key can never be heavily undercharged on a transaction level.
Work items to fix this: