Skip to content

Why is limit of callstack 5? #309

@da1suk8

Description

@da1suk8

Currently, the limit of the call stack is defined as 5.
It is mainly used in the following codes.

pub const DYNAMIC_CALL_DEPTH_LIMIT_CNT: usize = 5;

if ctx.dynamic_callstack.len() >= DYNAMIC_CALL_DEPTH_LIMIT_CNT {
return Err(VmError::dynamic_call_depth_over_limitation_err());
}

if callstack.len() >= DYNAMIC_CALL_DEPTH_LIMIT_CNT {
return Err(VmError::dynamic_call_depth_over_limitation_err());
};

Check callstack limits and fix if necessary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    dynamic_linkrelate the dynamic link call feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions