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 program_accounts_map from account_loader #768

Merged

Conversation

Lichtso
Copy link

@Lichtso Lichtso commented Apr 12, 2024

Problem

program_accounts_map is currently collected in the TransactionBatchProcessorand then wired all the way through account_loader.rs until account_shared_data_from_program() where it is actually not needed because we can just use loaded_program.account_owner() instead.

Summary of Changes

Removes program_accounts_map from account_loader.rs

@Lichtso Lichtso force-pushed the refactor/remove_program_accounts_map branch from 2593dd4 to 0650426 Compare April 12, 2024 08:55
@codecov-commenter
Copy link

codecov-commenter commented Apr 12, 2024

Codecov Report

Attention: Patch coverage is 81.81818% with 24 lines in your changes are missing coverage. Please review.

Project coverage is 81.9%. Comparing base (499d36e) to head (2a9e531).
Report is 3 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #768   +/-   ##
=======================================
  Coverage    81.9%    81.9%           
=======================================
  Files         851      851           
  Lines      231209   231246   +37     
=======================================
+ Hits       189495   189533   +38     
+ Misses      41714    41713    -1     

@Lichtso Lichtso force-pushed the refactor/remove_program_accounts_map branch from 0650426 to 2a9e531 Compare April 12, 2024 13:18
buffalojoec
buffalojoec previously approved these changes Apr 15, 2024
Copy link

@buffalojoec buffalojoec left a comment

Choose a reason for hiding this comment

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

You've asked me only to look at the second commit, so I did not review the first or #606.

Lgtm!

@Lichtso Lichtso force-pushed the refactor/remove_program_accounts_map branch 2 times, most recently from 1e6ab0b to 61ed3c4 Compare April 17, 2024 08:32
…ata_from_program(), load_transaction_accounts() and load_accounts().
@Lichtso Lichtso force-pushed the refactor/remove_program_accounts_map branch from 61ed3c4 to 2a4adcc Compare April 17, 2024 15:50
@Lichtso Lichtso merged commit e7617a1 into anza-xyz:master Apr 17, 2024
38 checks passed
@Lichtso Lichtso deleted the refactor/remove_program_accounts_map branch April 17, 2024 19:58
michaelschem pushed a commit to michaelschem/agave that referenced this pull request Apr 20, 2024
…z#768)

Removes program_accounts / program_accounts_map from account_shared_data_from_program(), load_transaction_accounts() and load_accounts().
Lichtso added a commit that referenced this pull request Nov 7, 2024
* Revert "Cleanup - Removes the owner form the result of `filter_executable_program_accounts()` (#879)"

This reverts commit 5fe30cb.

* Revert "Refactor - Remove `program_accounts_map` from account_loader (#768)"

This reverts commit e7617a1.
Lichtso added a commit that referenced this pull request Nov 8, 2024
* Revert "Cleanup - Removes the owner form the result of `filter_executable_program_accounts()` (#879)"

This reverts commit 5fe30cb.

* Revert "Refactor - Remove `program_accounts_map` from account_loader (#768)"

This reverts commit e7617a1.
mergify bot pushed a commit that referenced this pull request Nov 8, 2024
* Revert "Cleanup - Removes the owner form the result of `filter_executable_program_accounts()` (#879)"

This reverts commit 5fe30cb.

* Revert "Refactor - Remove `program_accounts_map` from account_loader (#768)"

This reverts commit e7617a1.

(cherry picked from commit 57bdb8e)
Lichtso added a commit that referenced this pull request Nov 8, 2024
Revert - #879 and #768 (#3521)

* Revert "Cleanup - Removes the owner form the result of `filter_executable_program_accounts()` (#879)"

This reverts commit 5fe30cb.

* Revert "Refactor - Remove `program_accounts_map` from account_loader (#768)"

This reverts commit e7617a1.

(cherry picked from commit 57bdb8e)

Co-authored-by: Alexander Meißner <AlexanderMeissner@gmx.net>
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.

3 participants