Confirm that the new promise_batch_action_function_call_weight host function doesn't need a separate set of costs #6537
Labels
A-params-estimator
Area: runtime params estimator
T-contract-runtime
Team: issues relevant to the contract runtime team
We are adding a new host function,
promise_batch_action_function_call_weight
. It works just likepromise_batch_action_function_call
, but allows for a bit of extra logic when attaching gas. Specifically, this fuction supplies each created function call action with a gas weight, and then, in the end of execution, we distribute all the unused gas proportional to the supplied weights.The question is:
Should the fees for this function be different from from the base one? Currently they are the same.
I think this is fine (we are basically adding a loop and a few arith ops on top of relatively heavy code), but it would be great to get some more concrete benchmarks here.
The text was updated successfully, but these errors were encountered: