3

Note: I'm not asking about the max depth which is 4.

If it is truly unlimited, can we theoretically have as many CPI calls as we want considering we remain under the compute limit?

1 Answer 1

4

there is actually a limit!

The max instruction trace length. It is limited to 64. So max you can do is 63 CPIs.

You will get a "Max instruction trace length exceeded" if you go over ;)

See this feature for details: https://github.com/solana-labs/solana/pull/27938

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.