I know that max call stack depth is 1024. I want to know that if calling private function can increase the depth.
Asked
Active
Viewed 63 times
1 Answers
3
As long as it's private/internal, no. It doesn't create a new message CALL between addresses, it just jumps around in the same context.
natewelch_
- 12,021
- 1
- 29
- 43
CALLandCREATEopcodes. But the stack depth is also limited to 1024, and certainly in normal situations the parameters to functions need to be pushed on to the stack. (Perhaps functions are inlined and parameters are already on the stack, but that is probably the exception, not the rule.) – user19510 May 07 '18 at 14:12