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

SVM: Wire up SVMRentCollector #2753

Merged
merged 5 commits into from
Aug 30, 2024

Conversation

buffalojoec
Copy link

Problem

Now that we have a trait for rent management that can be used within SVM, and Bank has its own implementation of SVMRentCollector on a wrapper type to inject logging and metrics, we can now wire everything up, so that the SVM API becomes generic over some SVMRentCollector and Bank can provide its custom implementation.

Summary of Changes

One at a time, wire up SVMRentCollector, often in place of the RentCollector struct itself.

  • SVM: account loader
  • SVM: transaction account state info
  • Runtime: fee distribution
  • Runtime: bank

Then drop everything SVM no longer needs (including solana-metrics).

@buffalojoec buffalojoec merged commit 5866bfb into anza-xyz:master Aug 30, 2024
51 checks passed
@buffalojoec buffalojoec deleted the svm-rent-collector-wiring-up branch August 30, 2024 02:06
ray-kast pushed a commit to abklabs/agave that referenced this pull request Nov 27, 2024
* SVM: account loader: wire up `SVMRentCollector`

* SVM: transaction account state info: wire up `SVMRentCollector`

* Runtime: fee distribution: wire up `SVMRentCollector`

* Runtime: bank: wire up `SVMRentCollector`

* SVM: drop everything unused
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