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

Runtime: Bank: Prioritize additional builtins for init and feature activations #35267

Closed

Conversation

buffalojoec
Copy link
Contributor

@buffalojoec buffalojoec commented Feb 20, 2024

Problem

In order to expand on testing feature activation behavior for builtins, the bank should have a method for providing additional test builtins to apply_feature_activations.

Summary of Changes

Add an additional parameter to apply_feature_activations and apply_builtin_program_feature_transitions to allow for providing additional test builtins to be activated on their corresponding feature_id.

Additionally, I've modified the iterator over BUILTINS to opt for any additional builtins with the same program ID, to ensure they are only added when the feature dictates so.

@buffalojoec buffalojoec requested a review from Lichtso February 20, 2024 21:49
@buffalojoec buffalojoec changed the title Override builtins 2 Runtime: Bank: Add parameter for providing test builtins on builtin program feature transitions Feb 20, 2024
Copy link

codecov bot commented Feb 20, 2024

Codecov Report

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

Project coverage is 81.8%. Comparing base (7399178) to head (c8663a4).

Additional details and impacted files
@@           Coverage Diff            @@
##           master   #35267    +/-   ##
========================================
  Coverage    81.7%    81.8%            
========================================
  Files         836      836            
  Lines      224834   224951   +117     
========================================
+ Hits       183847   184022   +175     
+ Misses      40987    40929    -58     

@buffalojoec buffalojoec force-pushed the override-builtins-2 branch 2 times, most recently from 6b5706f to 86c59f8 Compare February 21, 2024 18:04
@buffalojoec buffalojoec changed the title Runtime: Bank: Add parameter for providing test builtins on builtin program feature transitions Runtime: Bank: Prioritize additional builtins for init and feature activations Feb 21, 2024
@buffalojoec buffalojoec force-pushed the override-builtins-2 branch from a7fe30c to c8663a4 Compare March 1, 2024 16:50
@willhickey
Copy link
Contributor

This repository is no longer in use. Please re-open this pull request in the agave repo: https://github.com/anza-xyz/agave

@willhickey willhickey closed this Mar 3, 2024
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