Questions tagged [stack]
The stack tag has no usage guidance.
5 questions
0
votes
0
answers
16
views
How can I find out about upcoming airdrops?
Which DeFi protocols offer staking rewards?How can I participate in Solana-related social media campaigns?
How can I contribute to Solana's open-source codebase?
1
vote
1
answer
85
views
Why are just 4 nested CPIs allowed?
What is the motivation behind limiting the maximum number of nested CPIs (max_invoke_stack_height) to just 4?
0
votes
0
answers
14
views
Program upgrade "breaks" the other programs calling it
Given the max_invoke_stack_height limiting the maximum number of CPIs to just 4 and the A->B->C->D chain of nested CPIs, what if the implementation of the instruction D changes (via a ...
0
votes
1
answer
48
views
Get current stack offset in solana program
As the title says, how can I log what the current stack offset is during program execution? I found solana_program::instruction::get_stack_height but this seems to be for measuring how deeply nested ...
2
votes
1
answer
54
views
Is there a way to query remaining space in a stack frame issued to a function by the solana runtime?
As the solana docs state, a solana program is constrained with stack and heap limits, on the former a 4kb stack frame limit is ensured per function meaning i can create several functions (with a ...