-
Notifications
You must be signed in to change notification settings - Fork 338
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
Replace solana_program::stake with solana_stake_interface #4664
Replace solana_program::stake with solana_stake_interface #4664
Conversation
The Firedancer team maintains a line-for-line reimplementation of the |
04cf92a
to
2065824
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.
Looks great, thanks for fighting through this! Just a couple of small comments
solana-account-info= { path = "../../../../../sdk/account-info", version = "=2.2.0" } | ||
solana-program-entrypoint = { path = "../../../../../sdk/program-entrypoint", version = "=2.2.0" } | ||
solana-program-error= { path = "../../../../../sdk/program-error", version = "=2.2.0" } | ||
solana-pubkey = { path = "../../../../../sdk/pubkey", version = "=2.2.0" } |
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.
Nice, this is so much simpler, sorry I didn't think of it earlier.
genesis/Cargo.toml
Outdated
@@ -34,6 +34,7 @@ tempfile = { workspace = true } | |||
|
|||
[dev-dependencies] | |||
solana-runtime = { workspace = true, features = ["dev-context-only-utils"] } | |||
solana-stake-interface = { workspace = true, features = ["borsh"] } |
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.
Sorry, it's not clear from this PR or the code in genesis
-- why is this dependency needed?
"dep:solana-frozen-abi", | ||
"dep:solana-frozen-abi-macro", | ||
"solana-stake-interface/frozen-abi" | ||
] | ||
serde = [ |
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.
Can we enable the serde feature on solana-stake-interface
if the serde feature on this crate is enabled?
7c49055
to
be32f23
Compare
Closes #4529
Changes:
solana-stake-interface
to replace what's insolana_program::stake