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

Query a node for a snapshot of big ledger peers #727

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

crocodile-dentist
Copy link
Contributor

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

Changelog

- description: |
   added `runQueryLedgerPeerSnapshot` function to retrieve and store
   a snapshot of big ledger peers. This function is invoked by ledger-peer-snapshot
   subcommand of query.
# uncomment types applicable to the change:
  type:
  # - feature        # introduces a new feature
  - breaking       # the API has changed in a breaking way
  # - compatible     # the API has changed but is non-breaking
  # - optimisation   # measurable performance improvements
  # - improvement    # QoL changes e.g. refactoring
  # - bugfix         # fixes a defect
  # - test           # fixes/modifies tests
  # - maintenance    # not directly related to the code
  # - release        # related to a new release preparation
  # - documentation  # change in code docs, haddocks...

Context

A new query subcommand ledger-peer-snapshot was introduced to serialize a snapshot of big ledger peers. These relays will be relied on by network layer when a node is syncing up in Genesis consensus mode, since a node may not have any or up to date information from its own ledger which are the big ledger peer relays.

Closes #571

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • New tests are added if needed and existing tests are updated. See Running tests for more details
  • Self-reviewed the diff

Copy link
Contributor

@carbolymer carbolymer left a comment

Choose a reason for hiding this comment

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

LGTM thanks! There are build failures though.

cardano-cli/CHANGELOG.md Outdated Show resolved Hide resolved
cardano-cli/src/Cardano/CLI/Legacy/Options.hs Outdated Show resolved Hide resolved
@crocodile-dentist crocodile-dentist force-pushed the mwojtowicz/ledger-query-peer-snapshot branch from 141ce47 to ab2200d Compare April 22, 2024 09:00
Copy link

github-actions bot commented Jun 7, 2024

This PR is stale because it has been open 45 days with no activity.

@github-actions github-actions bot added the Stale label Jun 7, 2024
@crocodile-dentist crocodile-dentist force-pushed the mwojtowicz/ledger-query-peer-snapshot branch from ab2200d to 846fbcb Compare June 7, 2024 10:46
@github-actions github-actions bot removed the Stale label Jun 8, 2024
@smelc
Copy link
Contributor

smelc commented Jun 10, 2024

Seems this is blocked on updated in https://github.com/IntersectMBO/ouroboros-network, so putting as draft until this is really mergeable. @crocodile-dentist> please undraft when this is close to being merged.

@smelc smelc marked this pull request as draft June 10, 2024 12:50
@crocodile-dentist crocodile-dentist force-pushed the mwojtowicz/ledger-query-peer-snapshot branch 3 times, most recently from 1a78bfc to 913c44d Compare June 18, 2024 09:24
@palas
Copy link
Contributor

palas commented Jul 15, 2024

@palas palas force-pushed the mwojtowicz/ledger-query-peer-snapshot branch 2 times, most recently from 36449ee to cb5eebc Compare July 15, 2024 22:54
@palas
Copy link
Contributor

palas commented Jul 15, 2024

FYI: I have rebased your branch because we have done changes to the formatting. I have made a copy of the unrebased branch that you can find in my previous comment in this PR.

@crocodile-dentist crocodile-dentist force-pushed the mwojtowicz/ledger-query-peer-snapshot branch from cb5eebc to 72a6466 Compare August 5, 2024 10:57
@crocodile-dentist crocodile-dentist force-pushed the mwojtowicz/ledger-query-peer-snapshot branch from 72a6466 to 7e4c792 Compare August 8, 2024 13:50
This change introduces query subcommand ledger-peer-snapshot to
serialize a snapshot of big ledger peers from the tip of the current
chain.
@crocodile-dentist crocodile-dentist force-pushed the mwojtowicz/ledger-query-peer-snapshot branch from 7e4c792 to 00a96fb Compare August 8, 2024 13:55
Copy link

This PR is stale because it has been open 45 days with no activity.

@github-actions github-actions bot added the Stale label Sep 23, 2024
@github-actions github-actions bot removed the Stale label Oct 15, 2024
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.

cardano-cli command which outputs ledger peers
4 participants