Constant soroban_env_host::budget::DEFAULT_HOST_DEPTH_LIMIT
source · pub const DEFAULT_HOST_DEPTH_LIMIT: u32 = 100;
Expand description
DEFAULT_HOST_DEPTH_LIMIT
: This limit applies to the host environment. It guards recursion paths involving theEnv
andBudget
, particularly during operations like conversion, comparison, and deep cloning. The limit is strategically checked at critical recursion points, such as when encountering aVal
. As the actual stack usage can be higher,DEFAULT_HOST_DEPTH_LIMIT
is conservatively set to a lower value than the XDR limit.