Skip to content

add proposal budget opts, single-flight, leanSpec fixes - #111

Merged
ArtiomTr merged 1 commit into
grandinetech:devnet-5from
bomanaps:opt1-opt2-single-flight
Jul 24, 2026
Merged

add proposal budget opts, single-flight, leanSpec fixes#111
ArtiomTr merged 1 commit into
grandinetech:devnet-5from
bomanaps:opt1-opt2-single-flight

Conversation

@bomanaps

@bomanaps bomanaps commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Implements block-proposal budget optimizations from leanSpec PRs #1177/#1178/#1179/#1181/#1182 early-bird proposal that slides the build window into the previous slot's interval-4 view-merge, and skipping proof compaction on the proposer so aggregators absorb it https://hackmd.io/@MegaRedHand/HJM6d_eQMx, also includes a ProduceBlock single-flight guard, aggregation retention-leak fix with corrected metric scope, proposer head-lag guard, XMSS advance_preparation to stop the slot-131,072 sign panic, and an attestation-signing metric scope fix.

@ArtiomTr ArtiomTr left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks fine, but please:

  • Provide proper pull request name
  • Provide proper pull request description
  • Rebase commits into logical, atomic, updates. If you're doing 3 things, pr should contain 3 commits, and every commit should have proper name/description

Without that, it becomes extremely complicated to understand what happens in PR at all.

Comment thread lean_client/validator/src/lib.rs Outdated
all_validator_ids.dedup();
let all_participants = AggregationBits::from_validator_indices(&all_validator_ids);
METRICS.get().map(|m| {
m.lean_aggregation_job_setup_seconds

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

why not timer used here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I added it so I can tell whether a slow aggregation session is the Rust-side setup work or the SNARK itself without polluting the spec metric

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Understood, but keep in mind that custom metrics should be prefixed with grandine_, not lean_.

But that doesn't change my point - you can still use proper prometheus timer, instead of custom float value, computed via Instant.

@bomanaps

Copy link
Copy Markdown
Contributor Author

Looks fine, but please:

* Provide proper pull request name

* Provide proper pull request description

* Rebase commits into logical, atomic, updates. If you're doing 3 things, pr should contain 3 commits, and every commit should have proper name/description

Without that, it becomes extremely complicated to understand what happens in PR at all.

Looks fine, but please:

* Provide proper pull request name

* Provide proper pull request description

* Rebase commits into logical, atomic, updates. If you're doing 3 things, pr should contain 3 commits, and every commit should have proper name/description

Without that, it becomes extremely complicated to understand what happens in PR at all.

Am sorry about this

@ArtiomTr

Copy link
Copy Markdown
Collaborator

No problem, this is just a recommendation - makes easier to maintain and review PRs. Can you also please don't use the opt-1/opt-2 naming, as it is a bit confusing, without reference to the article? I mean, you can just name them "early-bird proposal optimization"/"skipping proof compaction during proposal"

@bomanaps
bomanaps force-pushed the opt1-opt2-single-flight branch from 7fd85b7 to 5ec22ee Compare July 21, 2026 18:01
@bomanaps
bomanaps requested a review from ArtiomTr July 21, 2026 18:02
@bomanaps bomanaps changed the title add opt-1, opt-2, single-flight, leanSpec fixes add proposal budget opts, single-flight, leanSpec fixes Jul 21, 2026
@ArtiomTr

Copy link
Copy Markdown
Collaborator

Looks like commits are still not cleaned up? I see 6 commits

@bomanaps
bomanaps force-pushed the opt1-opt2-single-flight branch from 5ec22ee to fca609f Compare July 23, 2026 14:47
@ArtiomTr
ArtiomTr merged commit f858389 into grandinetech:devnet-5 Jul 24, 2026
2 of 3 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.

2 participants