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

scheduler: fix duplicate slot #1392

Merged
merged 1 commit into from
Nov 7, 2022
Merged

scheduler: fix duplicate slot #1392

merged 1 commit into from
Nov 7, 2022

Conversation

corverroos
Copy link
Contributor

Fixes issues due to sporadic duplicate slot scheduling.

category: bug
ticket: #1389

@@ -47,7 +47,7 @@ func NewSyncCommMember(eth2Cl eth2wrap.Client, epoch eth2p0.Epoch, signFunc Sign
dutiesOK: make(chan struct{}),
selections: make(map[eth2p0.Slot]syncSelections),
selectionsOK: make(map[eth2p0.Slot]chan struct{}),
blockRoot: make(map[eth2p0.Slot]*eth2p0.Root),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

changing this it non-pointer since basic eth2 types aren't pointers and this causes a panic when duties time out.

@codecov
Copy link

codecov bot commented Nov 7, 2022

Codecov Report

Base: 53.19% // Head: 53.13% // Decreases project coverage by -0.06% ⚠️

Coverage data is based on head (f62fb90) compared to base (13cf754).
Patch coverage: 22.22% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1392      +/-   ##
==========================================
- Coverage   53.19%   53.13%   -0.07%     
==========================================
  Files         145      145              
  Lines       18226    18226              
==========================================
- Hits         9696     9684      -12     
- Misses       7201     7207       +6     
- Partials     1329     1335       +6     
Impacted Files Coverage Δ
testutil/validatormock/synccomm.go 0.00% <0.00%> (ø)
core/scheduler/scheduler.go 72.66% <50.00%> (-0.72%) ⬇️
app/peerinfo/peerinfo.go 54.48% <0.00%> (-3.45%) ⬇️
app/app.go 61.41% <0.00%> (-1.22%) ⬇️
app/vmock.go 72.87% <0.00%> (-1.07%) ⬇️
core/qbft/qbft.go 82.35% <0.00%> (+0.84%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@xenowits xenowits left a comment

Choose a reason for hiding this comment

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

LGTM!

@corverroos corverroos added the merge when ready Indicates bulldozer bot may merge when all checks pass label Nov 7, 2022
@obol-bulldozer obol-bulldozer bot merged commit 76dd3d5 into main Nov 7, 2022
@obol-bulldozer obol-bulldozer bot deleted the corver/fixpanic branch November 7, 2022 14:36
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.

None yet

2 participants