Skip to content

WIP: light client query service decaf sync#4576

Closed
sveitser wants to merge 2 commits into
mainfrom
ma/light-client-decaf-sync
Closed

WIP: light client query service decaf sync#4576
sveitser wants to merge 2 commits into
mainfrom
ma/light-client-decaf-sync

Conversation

@sveitser

Copy link
Copy Markdown
Collaborator

just for sharing

@gemini-code-assist

Copy link
Copy Markdown
Contributor
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

anyhow = { workspace = true }
clap = { workspace = true }
espresso-node = { workspace = true, default-features = false }
espresso-node = { workspace = true, default-features = false, features = ["embedded-db"] }

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

this seems wrong but probably doesn't affect the experiment here

@sveitser

Copy link
Copy Markdown
Collaborator Author

lc-query-service-2.log

@github-actions

github-actions Bot commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Nextest failures (10) in this run

Test Attempts Time (s) Main history
tests::integration::proof_of_stake::test_native_demo_da_committee 3 319.28 passing
tests::integration::proof_of_stake::test_native_demo_drb_header_base 3 319.10 flaky 1/20
tests::integration::proof_of_stake::test_native_demo_ff_base 3 140.66 flaky 1/20
tests::integration::proof_of_stake::test_native_demo_pos_base 3 318.89 passing
tests::integration::smoke::test_native_demo_base 3 317.86 flaky 4/20
tests::integration::upgrades::test_native_demo_drb_header_upgrade 3 318.47 passing
tests::integration::upgrades::test_native_demo_epoch_reward_upgrade 3 318.72 passing
tests::integration::upgrades::test_native_demo_fee_to_drb_header_upgrade 3 317.95 flaky 2/20
tests::integration::upgrades::test_native_demo_new_protocol_upgrade 3 319.93 passing
tests::integration::upgrades::test_native_demo_pos_upgrade 3 320.44 passing

See the step summary for flaky tests and slowest tests.

@github-actions

github-actions Bot commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Nextest failures (3) in this run

Test Attempts Time (s) Main history
cliquenet::bench/bench1::tcp/512 KiB 1 11.12 passing
hotshot-testing::test_epochs_combined_network::test_combined_network_cdn_crash_with_epochs::testtwostaketablestypes_::combinedimpl_::test_combined_network_cdn_crash_with_epochs 1 26.57 passing
hotshot-testing::test_with_double_leader_no_failures_with_epochs::test_with_double_leader_no_failures_with_epochs::testconsecutiveleadertypes_::libp2pimpl_::test_with_double_leader_no_failures_with_epochs 1 22.37 passing

See the step summary for flaky tests and slowest tests.

We were using the epoch number from the QC in the finality proof
to get the epoch number of the quorum required to verify a
`LeafProof`. For QCs generated prior to the proof-of-stake upgrade,
this would be `None`, which would cause the verifier to incorrectly
use an `Assumption` hint, when it should be using the genesis,
pre-epochs quorum.

The fix uses the leaf height to compute the required epoch, which
works regardless of whether the QC has an epoch number or not.
sveitser added a commit that referenced this pull request Jul 1, 2026
From #4576 

We were using the epoch number from the QC in the finality proof to get
the epoch number of the quorum required to verify a `LeafProof`. For QCs
generated prior to the proof-of-stake upgrade, this would be `None`,
which would cause the verifier to incorrectly use an `Assumption` hint,
when it should be using the genesis, pre-epochs quorum.

The fix uses the leaf height to compute the required epoch, which works
regardless of whether the QC has an epoch number or not.

(cherry picked from commit b7f098a)
@sveitser sveitser closed this Jul 7, 2026
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.

2 participants