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

Move functionality of calculating big ledger peers to ouroboros-network-api #4849

Merged

Conversation

crocodile-dentist
Copy link
Contributor

@crocodile-dentist crocodile-dentist commented Apr 11, 2024

Description

This functionality is leveraged by downstream libraries to serialize a snapshot of big ledger peers in support of Genesis consensus mode.

Checklist

  • Branch
    • Updated changelog files.
    • Commit sequence broadly makes sense
    • Commits have useful messages
    • The documentation has been properly updated
    • New tests are added if needed and existing tests are updated
    • If serialization changes, user-facing consequences (e.g. replay from genesis) are confirmed to be intentional.
  • Pull Request
    • Self-reviewed the diff
    • Useful pull request description at least containing the following information:
      • What does this PR change?
      • Why these changes were needed?
      • How does this affect downstream repositories and/or end-users?
      • Which ticket does this PR close (if any)? If it does, is it linked?
    • Reviewer requested

@crocodile-dentist crocodile-dentist requested a review from a team as a code owner April 11, 2024 09:19
@crocodile-dentist crocodile-dentist self-assigned this Apr 11, 2024
@crocodile-dentist crocodile-dentist force-pushed the mwojtowicz/expose-accBigPoolStake-network-api branch 5 times, most recently from b8d18a2 to 28da25c Compare April 11, 2024 14:07
@coot coot added the outbound-governor Issues / PRs related to outbound-governor label Apr 18, 2024
@crocodile-dentist crocodile-dentist force-pushed the mwojtowicz/expose-accBigPoolStake-network-api branch from 28da25c to 515adb5 Compare April 19, 2024 19:06
@coot
Copy link
Contributor

coot commented Apr 24, 2024

There are some build failures on CI.

@crocodile-dentist crocodile-dentist force-pushed the mwojtowicz/expose-accBigPoolStake-network-api branch from 515adb5 to 088d1e8 Compare May 2, 2024 08:02
@crocodile-dentist crocodile-dentist force-pushed the mwojtowicz/expose-accBigPoolStake-network-api branch from 088d1e8 to ced1571 Compare May 22, 2024 10:41
Copy link
Contributor

@bolt12 bolt12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just make sure this still compiles after rebasing with 4848! But LGTM! :D

@crocodile-dentist crocodile-dentist force-pushed the mwojtowicz/expose-accBigPoolStake-network-api branch 2 times, most recently from 60d9b62 to ddafa5b Compare June 17, 2024 15:04
@crocodile-dentist
Copy link
Contributor Author

crocodile-dentist commented Jun 17, 2024

Tests found a bug, but it is on master as well which makes sense as this PR and the one before are pretty much administrative changes.

[edit] To reproduce, run:

cabal run ouroboros-network:sim-tests -- --quickcheck-replay=53448 -p '/progress.ledger peers.progresses towards established target (from below)/

Moved utility functions to ouroboros-network-api to support
calculating big ledger peer snapshots by upstream libraries,
for eg. Genesis consensus mode and bootstrapping a node with
a recent snapshot of these peers.
@crocodile-dentist crocodile-dentist force-pushed the mwojtowicz/expose-accBigPoolStake-network-api branch from 3c32cda to d2eaf3b Compare June 18, 2024 09:44
@crocodile-dentist crocodile-dentist added this pull request to the merge queue Jun 18, 2024
Merged via the queue into master with commit bee883f Jun 18, 2024
13 checks passed
@crocodile-dentist crocodile-dentist deleted the mwojtowicz/expose-accBigPoolStake-network-api branch June 18, 2024 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
outbound-governor Issues / PRs related to outbound-governor
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants