-
Notifications
You must be signed in to change notification settings - Fork 41
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 pallas stake snapshots integration #1513
add pallas stake snapshots integration #1513
Conversation
- remove a print statement for "computed_stake_distribution"
- simplify `get_stake_pool_hash` function by removing `stakes` argument and adjust the return type. - now fetch the `stakes.snapshot_mark_pool` directly in the `get_stake_distribution_snapshot` function when inserting into `stake_distribution`.
@jpraynaud ready for review |
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.
Hi @falcucci, I left a few comments, otherwise LGTM 👍
- rename `get_stake_distribution_snapshot` to `get_stake_distribution` - change the test function name to include `with_fallback` instead of `fallback`
@jpraynaud done! I resent the review back to you so you can approve it :) |
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 the contribution @falcucci!
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 a suggestion, otherwise LGTM 👍.
Thanks for the work @falcucci 🚀
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 work ! I've just two comments :).
Nothing to say after the review. |
- refactor the filter condition in the stake snapshots loop - update `stakes` import for the changed module structure
Hi @falcucci, can you bump the crates versions so that we merge this PR? |
- refactor imports in `pallas_observer.rs` - update code references to `localstate::queries_v16` to now use the module specifiers directly - consolidate initialization and usage of `stakes` struct in tests - adjust stake values and pools in test data - rename `localstate::queries_v16::stakesnapshot` to `stakesnapshot` - refactor matching logic in `match` block for query handling
- update the version in cargo.toml from "0.3.4" to "0.3.5"
@jpraynaud done! |
5390053
to
6e3a590
Compare
6e3a590
to
311c9f4
Compare
Cargo.lock
Outdated
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.
@falcucci, actually this file should not be modified, except for the version of the mithril-common
that is bumped.
Can you roll it back completely and just bump the mithril-common
version?
- update the version from `0.3.6` to `0.3.7` in the `mithril-common` package metadata in `cargo.toml`
Pre-submit checklist
fixes #1315