Skip to content

Conversation

mts1715
Copy link

@mts1715 mts1715 commented Oct 16, 2025

Closes #7879
Added two config operators to access-node cli

  • execution-result-agreeing-executors-count
  • execution-result-required-executors

These parameters are passed to the ExecutionResultInfoProvider as criteria during the RPC Engine building.

@mts1715 mts1715 requested a review from a team as a code owner October 16, 2025 18:20
@mts1715 mts1715 changed the title add operator config for execution result query Criteria #7879 add operator config for execution result query Criteria Oct 16, 2025
flags.UintVar(&builder.executionResultAgreeingExecutorsCount,
"execution-result-agreeing-executors-count",
defaultConfig.executionResultAgreeingExecutorsCount,
"minimum number of execution receipts with the same result required for execution result queries")
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add a validation to make sure the provided number is greater than or equal to 1? That should go in the ValidateFlags function

node.State,
node.Storage.Receipts,
execNodeSelector,
optimistic_sync.DefaultCriteria,
Copy link
Contributor

Choose a reason for hiding this comment

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

DefaultCriteria is also passed to the backend params as the OperatorCriteria field. I don't think we need that field anymore. can you remove it from the params struct?

@peterargue
Copy link
Contributor

added a couple small comments, but looks great!

@codecov-commenter
Copy link

codecov-commenter commented Oct 16, 2025

Codecov Report

❌ Patch coverage is 0% with 43 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
cmd/access/node_builder/access_node_builder.go 0.00% 43 Missing ⚠️

📢 Thoughts on this report? Let us know!

ExecutionResultInfoProvider: execResultInfoProvider,
ExecutionStateCache: execStateCache,
OperatorCriteria: optimistic_sync.DefaultCriteria,
OperatorCriteria: operatorCriteria,
Copy link
Contributor

Choose a reason for hiding this comment

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

can you just remove this field entirely. It's unused

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.

3 participants