-
Notifications
You must be signed in to change notification settings - Fork 258
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
extract poh-config crate #3855
extract poh-config crate #3855
Conversation
d194eb8
to
4f87316
Compare
778774a
to
c35c84b
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.
Just the one question, looks good otherwise! @yihau can you accept solana-poh-config
?
pub extern crate bs58; | ||
extern crate log as logger; | ||
#[cfg_attr(not(target_os = "solana"), macro_use)] |
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.
What's this change about?
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.
After moving out poh_config, we were getting an unused macro warning that this fixes
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.
Just curious why this wasn't included under full
? I don't think programs need this package, right?
That would have been a breaking change |
Isn't |
It would be a breaking change for anyone building with |
Problem
solana_sdk::poh_config
blocks moving outsolana_sdk::genesis_config
and imposes asolana_sdk
dep on svm cratesSummary of Changes
unchecked_div_by_const
with regular const division and a check for non-zero denominator, to avoid a solana-program dep