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: Prepare stake_instruction.rs to remove KeyedAccounts #23375

Merged
merged 4 commits into from
Feb 28, 2022

Conversation

Lichtso
Copy link
Contributor

@Lichtso Lichtso commented Feb 28, 2022

Problem

stake_instruction.rs is not using instruction_account_indices yet.

Summary of Changes

  • Adds instruction_account_indices
  • Replaces get_sysvar_with_account_check() by get_sysvar_with_account_check2()
  • Adds check_number_of_instruction_accounts()

Fixes #

@Lichtso Lichtso merged commit ee3fc39 into solana-labs:master Feb 28, 2022
@Lichtso Lichtso deleted the refactor/remove_keyed_accounts_11 branch February 28, 2022 15:24
jeffwashington pushed a commit to jeffwashington/solana that referenced this pull request Mar 4, 2022
…ana-labs#23375)

* Adds instruction_account_indices to stake instruction.

* Uses instruction_account_indices in stake instruction.

* Replaces get_sysvar_with_account_check by get_sysvar_with_account_check2 in stake instruction.

* Adds check_number_of_instruction_accounts().
Lichtso added a commit to Lichtso/solana that referenced this pull request Mar 14, 2022
Lichtso added a commit to Lichtso/solana that referenced this pull request Mar 14, 2022
Lichtso added a commit to Lichtso/solana that referenced this pull request Mar 14, 2022
Lichtso added a commit to Lichtso/solana that referenced this pull request Mar 14, 2022
Lichtso added a commit to Lichtso/solana that referenced this pull request Mar 15, 2022
Lichtso added a commit to Lichtso/solana that referenced this pull request Mar 15, 2022
Lichtso added a commit that referenced this pull request Mar 16, 2022
* Revert "Replaces KeyedAccount by BorrowedAccount in the BPF loader. (#23056)"

6c56eb9

* Revert "Replaces `KeyedAccount` by `BorrowedAccount` in `system_instruction_processor`. (#23217)"

ee7e411

* Revert "Replaces `KeyedAccount` by `BorrowedAccount` in `nonce_keyed_account`. (#23214)"

1a68f81

* Revert "Replaces KeyedAccount by BorrowedAccount in the config processor. (#23302)"

a14c7c3

* Revert "Replaces `KeyedAccount` by `BorrowedAccount` in vote processor (#23348)"

e2fa6a0

* Revert "Refactor: Prepare stake_instruction.rs to remove `KeyedAccount`s (#23375)"

ee3fc39
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.

1 participant