Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit number the recursion depth of smart contract call execution #10955

Open
aborg-dev opened this issue Apr 5, 2024 · 0 comments
Open

Limit number the recursion depth of smart contract call execution #10955

aborg-dev opened this issue Apr 5, 2024 · 0 comments

Comments

@aborg-dev
Copy link
Contributor

A smart contract call can generate new receipts which can generate new receipts and so on. The maximum depth of such tree of receipts is currently dictated by the gas costs and equals around ~60 for mainnet. After the decrease in the function call base cost (#10943), this depth will increase to at least 100.

It would be a useful safety feature to limit this depth to some fixed value (e.g. current 60) regardless of the gas costs to make it easier to reason about the system and avoid unwanted infinite-depth recursion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant