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

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

crocodile-dentist
Copy link
Contributor

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

Changelog

- description: |
   Add QueryLedgerPeerSnapshotCmd for a snapshot of big ledger peers used when syncing in Genesis
# 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 2 times, most recently 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
@crocodile-dentist crocodile-dentist force-pushed the mwojtowicz/ledger-query-peer-snapshot branch 4 times, most recently from 763030b to fe0ed80 Compare November 15, 2024 09:35
@crocodile-dentist crocodile-dentist force-pushed the mwojtowicz/ledger-query-peer-snapshot branch 2 times, most recently from d4b3002 to d650425 Compare November 25, 2024 10:13
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 Jan 10, 2025
@crocodile-dentist crocodile-dentist force-pushed the mwojtowicz/ledger-query-peer-snapshot branch from d650425 to 45f5469 Compare January 10, 2025 09:09
@crocodile-dentist crocodile-dentist requested review from a team as code owners January 10, 2025 09:09
@crocodile-dentist crocodile-dentist force-pushed the mwojtowicz/ledger-query-peer-snapshot branch 2 times, most recently from 385c373 to bbcef0c Compare January 10, 2025 13:10
@github-actions github-actions bot removed the Stale label Jan 11, 2025
@crocodile-dentist crocodile-dentist force-pushed the mwojtowicz/ledger-query-peer-snapshot branch from bbcef0c to 9bd640e Compare January 13, 2025 08:09
@crocodile-dentist
Copy link
Contributor Author

I've tested this query on a live node and it functions as expected. Once IntersectMBO/cardano-api#521 and #986 are merged so can this.

@crocodile-dentist crocodile-dentist force-pushed the mwojtowicz/ledger-query-peer-snapshot branch 5 times, most recently from 352fa6a to 4b0bad5 Compare January 15, 2025 12:51
@carbolymer carbolymer force-pushed the mwojtowicz/ledger-query-peer-snapshot branch from 4b0bad5 to f8b35e8 Compare January 15, 2025 13:25
This change introduces query subcommand ledger-peer-snapshot to
serialize a snapshot of big ledger peers from the tip of the current
chain.
@carbolymer carbolymer force-pushed the mwojtowicz/ledger-query-peer-snapshot branch from f8b35e8 to 667e129 Compare January 15, 2025 13:57
@carbolymer carbolymer enabled auto-merge January 15, 2025 13:59
@carbolymer carbolymer added this pull request to the merge queue Jan 15, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 15, 2025
@carbolymer carbolymer merged commit 1a93000 into master Jan 15, 2025
25 checks passed
@carbolymer carbolymer deleted the mwojtowicz/ledger-query-peer-snapshot branch January 15, 2025 14:31
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