As a followup to in a program, is it possible to tell if an instruction was invoked by a CPI call?, I was curious if the instructions sysvar would ever contain CPI instruction data.
For a more concrete example I ran an experiment with the following tx structure,
Instruction 1
Instruction 2
Instruction 2a
Instruction 2b
Instruction 2c
Instruction 3
When in the middle of executing 2b, the instruction sysvar account info only had data for 1,2,3, and NOT 2a, 2b, 2c. Can someone confirm that this is expected?