-
Notifications
You must be signed in to change notification settings - Fork 90
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
testutil/beaconmock: add head producer #1308
Conversation
Codecov ReportBase: 53.45% // Head: 53.44% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #1308 +/- ##
==========================================
- Coverage 53.45% 53.44% -0.01%
==========================================
Files 141 142 +1
Lines 16944 16919 -25
==========================================
- Hits 9058 9043 -15
+ Misses 6608 6602 -6
+ Partials 1278 1274 -4
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. |
testutil/beaconmock/blockproducer.go
Outdated
return &BlockProducer{server: server} | ||
} | ||
|
||
// BlockProducer is stateful structure for providing deterministic block roots based on slot events. |
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.
// BlockProducer is stateful structure for providing deterministic block roots based on slot events. | |
// BlockProducer is a stateful struct for providing deterministic block roots based on slot events. |
testutil/beaconmock/options.go
Outdated
mock.overrides = append(mock.overrides, staticOverride{ | ||
Endpoint: "/eth/v1/config/spec", | ||
Key: "EPOCHS_PER_SYNC_COMMITTEE_PERIOD", | ||
Value: "2", |
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.
shouldn't this be 1?
testutil/validatormock/synccomm.go
Outdated
return err | ||
} | ||
|
||
log.Info(ctx, "Mock sync committee msg submitted", z.Int("slot", int(slot)), z.Str("root", hex.EncodeToString(blockRoot[:]))) |
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.
remove root, it isn't human understandable
bfee61c
to
7145ba5
Compare
Adds head producer to beaconmock.
category: feature
ticket: #1307