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

Refactor - Remove process_instruction parameter first_instruction_account #30579

Conversation

Lichtso
Copy link
Contributor

@Lichtso Lichtso commented Mar 3, 2023

Problem

first_instruction_account is being passed around to all built-in programs even though it is only used in bpf_loader.

Summary of Changes

Moves the calculation of first_instruction_account from InvokeContext::process_executable_chain() into bpf_loader::process_instruction_common().

@Lichtso Lichtso force-pushed the refactor/remove_process_instruction_first_instruction_account branch 4 times, most recently from 484ae48 to 2c8be3f Compare March 3, 2023 17:23
@Lichtso Lichtso requested a review from pgarg66 March 6, 2023 10:52
@Lichtso Lichtso force-pushed the refactor/remove_process_instruction_first_instruction_account branch from 2c8be3f to f136755 Compare March 6, 2023 13:31
Copy link
Contributor

@pgarg66 pgarg66 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@Lichtso Lichtso merged commit 38e7432 into solana-labs:master Mar 6, 2023
@Lichtso Lichtso deleted the refactor/remove_process_instruction_first_instruction_account branch March 6, 2023 16:37
nickfrosty pushed a commit to nickfrosty/solana that referenced this pull request Mar 12, 2023
…account` (solana-labs#30579)

* Stops using first_instruction_account parameter in bpf_loader.

* Removes first_instruction_account parameter from process_instruction().
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

Successfully merging this pull request may close these issues.

2 participants