Skip to content
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

get stake snapshots using pallas observer #3

Merged
merged 12 commits into from
Feb 22, 2024
Merged

Conversation

falcucci
Copy link

@falcucci falcucci commented Feb 3, 2024

fixes #2

@falcucci falcucci self-assigned this Feb 3, 2024
Copy link

github-actions bot commented Feb 12, 2024

Test Results

  3 files  ±0   42 suites  ±0   8m 50s ⏱️ +28s
865 tests +1  860 ✅  - 4  0 💤 ±0  5 ❌ +5 
954 runs  +1  949 ✅  - 4  0 💤 ±0  5 ❌ +5 

For more details on these failures, see this check.

Results for commit bd8cbcd. ± Comparison against base commit 17afb2c.

♻️ This comment has been updated with latest results.

@falcucci falcucci force-pushed the feat/stake-distribution branch from 4b7c381 to 362add7 Compare February 13, 2024 16:25
@falcucci falcucci closed this Feb 13, 2024
@falcucci falcucci reopened this Feb 13, 2024
@falcucci falcucci changed the base branch from main to feat/get-datum February 13, 2024 16:34
@falcucci falcucci changed the base branch from feat/get-datum to main February 13, 2024 16:34
- remove a print statement for "computed_stake_distribution"
@falcucci falcucci marked this pull request as ready for review February 13, 2024 16:40
@falcucci falcucci requested a review from scarmuega February 13, 2024 16:42
- 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`.
- rename `get_stake_distribution_snapshot` to `get_stake_distribution`
- change the test function name to include `with_fallback` instead of `fallback`
- refactor the filter condition in the stake snapshots loop
- update `stakes` import for the changed module structure
- 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"
@falcucci falcucci force-pushed the feat/stake-distribution branch from 5390053 to 6e3a590 Compare February 22, 2024 15:52
@falcucci falcucci force-pushed the feat/stake-distribution branch from 6e3a590 to 311c9f4 Compare February 22, 2024 16:50
- update the version from `0.3.6` to `0.3.7` in the `mithril-common` package metadata in `cargo.toml`
@falcucci falcucci merged commit cff2c64 into main Feb 22, 2024
26 of 30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement stake distribution operation in ChainObserver via Pallas
2 participants