-
Notifications
You must be signed in to change notification settings - Fork 254
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
Remove SVM's dependency on vote crate #3671
Conversation
The Firedancer team maintains a line-for-line reimplementation of the |
37a4b02
to
9c35d71
Compare
Leaving the PR open for time being, in case there are any other comments. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Just a few comments from my side. Thanks for making this change!
9c35d71
to
d508d0a
Compare
f21df42
to
42b2c7a
Compare
42b2c7a
to
e5136ac
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works for me! Just some small suggestions, mostly around the naming convention.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks!
Problem
SVM code is currently dependent on
solana-vote
crate. This dependency can be removed, that'll make it easier to move SVM to its own repo.Summary of Changes
The loader was using vote accounts HashMap to access stake for a given vote account. It didn't need any other information from the account. This change creates a HashMap of vote account pubkey and it's stake, and passes it to SVM. This helped remove the dependency on
solana-vote
crate.Fixes #