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

Track reserved account keys in bank #769

Merged
merged 1 commit into from
Apr 13, 2024

Conversation

jstarry
Copy link

@jstarry jstarry commented Apr 12, 2024

Problem

The transaction scheduler and the runtime both demote transaction write locks for builtin programs and sysvars using a static list of reserved IDs. This change adds a dynamic set of reserved account keys to the bank that can be updated at epoch boundaries with feature gates (added here: #84)

Summary of Changes

Bank now has a field for tracking reserved account keys and this field is updated on epoch boundaries according to new feature activations

Feature Gate Issue: #540

@jstarry jstarry added the feature-gate Pull Request adds or modifies a runtime feature gate label Apr 12, 2024
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

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

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #769   +/-   ##
=======================================
  Coverage    81.9%    81.9%           
=======================================
  Files         851      851           
  Lines      231209   231238   +29     
=======================================
+ Hits       189495   189544   +49     
+ Misses      41714    41694   -20     

@jstarry jstarry merged commit cb13b39 into anza-xyz:master Apr 13, 2024
49 checks passed
@jstarry jstarry deleted the feat/bank-reserved-keys branch April 20, 2024 04:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-gate Pull Request adds or modifies a runtime feature gate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants