-
Notifications
You must be signed in to change notification settings - Fork 2
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
add block based rarities #12
Conversation
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.
lgtm, thanks for all the tests. Is it easy to add more types of block rarity?
src/block_rarity.rs
Outdated
s == reversed | ||
} | ||
|
||
fn in_pizza_range(n: &u64, ranges: &Vec<(u64, u64)>) -> bool { |
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.
nit: in_range
since this can be used for any range
Hmm... It would be a case by case implementation depending on the definition of the new "block rarities". |
* add block based rarities * cargo fmt
* add block based rarities * cargo fmt
* add block based rarities * cargo fmt
* add block based rarities * cargo fmt
Support block based rarities for both individual sat and sat range, including: