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

core: implement duty gater #2530

Merged
merged 2 commits into from
Aug 10, 2023
Merged

core: implement duty gater #2530

merged 2 commits into from
Aug 10, 2023

Conversation

corverroos
Copy link
Contributor

Implement duty gater that checks whether duties are too far in the future. Next step is to wire it when duties are received over the wire.

category: feature
ticket: #2506

@codecov
Copy link

codecov bot commented Aug 10, 2023

Codecov Report

Patch coverage: 72.72% and project coverage change: -0.02% ⚠️

Comparison is base (a247f80) 53.76% compared to head (784bf9e) 53.75%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2530      +/-   ##
==========================================
- Coverage   53.76%   53.75%   -0.02%     
==========================================
  Files         199      200       +1     
  Lines       27068    27101      +33     
==========================================
+ Hits        14553    14568      +15     
- Misses      10702    10718      +16     
- Partials     1813     1815       +2     
Files Changed Coverage Δ
core/gater.go 72.72% <72.72%> (ø)

... and 8 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


type dutyGaterOptions struct {
allowedFutureEpochs int
nowFunc func() time.Time
Copy link
Contributor

Choose a reason for hiding this comment

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

is nowFunc introduced to make this testable?

@corverroos corverroos added the merge when ready Indicates bulldozer bot may merge when all checks pass label Aug 10, 2023
@obol-bulldozer obol-bulldozer bot merged commit 7bfd67a into main Aug 10, 2023
13 checks passed
@obol-bulldozer obol-bulldozer bot deleted the corver/gater branch August 10, 2023 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge when ready Indicates bulldozer bot may merge when all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants