-
Notifications
You must be signed in to change notification settings - Fork 199
add operator config for execution result query Criteria #8048
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
base: feature/optimistic-sync
Are you sure you want to change the base?
add operator config for execution result query Criteria #8048
Conversation
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") |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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?
added a couple small comments, but looks great! |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
… as OperatorCriteria
ExecutionResultInfoProvider: execResultInfoProvider, | ||
ExecutionStateCache: execStateCache, | ||
OperatorCriteria: optimistic_sync.DefaultCriteria, | ||
OperatorCriteria: operatorCriteria, |
There was a problem hiding this comment.
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
Closes #7879
Added two config operators to access-node cli
These parameters are passed to the ExecutionResultInfoProvider as criteria during the RPC Engine building.