WIP
Every call path that can result in a network-dependent explosion should be handled instead of assumed OK.
This commit is contained in:
+6
-1
@@ -216,7 +216,12 @@ return_sizer(Parent, J, FunIlk, ReturnType) ->
|
|||||||
|
|
||||||
|
|
||||||
call_param_sizer(Frame, J) ->
|
call_param_sizer(Frame, J) ->
|
||||||
{ok, Height} = hz:top_height(),
|
case hz:top_height() of
|
||||||
|
{ok, Height} -> call_param_sizer(Frame, J, Height);
|
||||||
|
Error -> handle_troubling(State, Error)
|
||||||
|
end.
|
||||||
|
|
||||||
|
call_param_sizer(Frame, J, Height) ->
|
||||||
DefTTL = Height + 10000,
|
DefTTL = Height + 10000,
|
||||||
DefGasP = hz:min_gas_price(),
|
DefGasP = hz:min_gas_price(),
|
||||||
DefGas = 5000000,
|
DefGas = 5000000,
|
||||||
|
|||||||
Reference in New Issue
Block a user