You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the current implementation of the builtin actor framework (#3624) the builtin_dispatcher::run() doesn't check whether the gas provided is sufficient for the actor to execute a message - this can require decoding the message itself and, hence, is done inside the actor's handle function.
We might want to change this flow to let the builtin_dispatcher decide upfront if the gas limit is sufficient. One of the ways to do that is to make builtins report their maximum possible incurred gas cost and require the message gas limit to surpass that value. If the actually burned gas turns out to be less than that amount, the unused gas will naturally be returned to the gas tree.
The text was updated successfully, but these errors were encountered:
In the current implementation of the builtin actor framework (#3624) the
builtin_dispatcher::run()
doesn't check whether the gas provided is sufficient for the actor to execute a message - this can require decoding the message itself and, hence, is done inside the actor'shandle
function.We might want to change this flow to let the
builtin_dispatcher
decide upfront if the gas limit is sufficient. One of the ways to do that is to make builtins report their maximum possible incurred gas cost and require the message gas limit to surpass that value. If the actually burned gas turns out to be less than that amount, the unused gas will naturally be returned to the gas tree.The text was updated successfully, but these errors were encountered: