-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Record inner instruction stack height #28430
Record inner instruction stack height #28430
Conversation
546b579
to
476b0f0
Compare
We can't change |
476b0f0
to
08616e8
Compare
Yes, exactly. Can't change |
// Invocation stack height of an inner instruction. | ||
// Available since Solana v1.14.6 | ||
// Set to `None` for txs executed on earlier versions. | ||
optional uint32 stack_height = 4; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uint32
is that really necessary, the runtime itself only used 8 bits for the stack height.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Smallest size in protobuf is u32
80f9937
to
d043a95
Compare
automerge label removed due to a CI failure |
d043a95
to
a64e016
Compare
automerge label removed due to a CI failure |
a64e016
to
e2a9e43
Compare
@jstarry thank you for this ! |
* Record inner instruction stack height * fix sbf tests * feedback
* Record inner instruction stack height * fix sbf tests * feedback
Problem
The inner instruction stack height isn't recorded after transaction processing so clients can't determine if an inner instruction was invoked by another inner instruction.
Summary of Changes
Builds on #28427
stack_height
in a newInnerInstruction
protobuf message type for each inner instructionstack_height
field to instruction data types returned by the RPC APIRelated to #27736