-
Notifications
You must be signed in to change notification settings - Fork 13
Wait for boostrap epoch and boostrap CertStore power table from it #354
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
Conversation
8dec701 to
c898ac3
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #354 +/- ##
==========================================
- Coverage 83.20% 83.10% -0.10%
==========================================
Files 15 15
Lines 1780 1782 +2
==========================================
Hits 1481 1481
- Misses 174 175 +1
- Partials 125 126 +1
|
c898ac3 to
ac80fcc
Compare
|
Fuzz test failed on commit 8dec701. To troubleshoot locally, download the seed corpus using GitHub CLI by running: gh run download 9582906729 -n testdataAleternatively, download directly from here. |
|
Fuzz test failed on commit ac80fcc. To troubleshoot locally, download the seed corpus using GitHub CLI by running: gh run download 9582990060 -n testdataAleternatively, download directly from here. |
e0e8ab7 to
e8bef1b
Compare
|
@Stebalien this is a bit nasty, I need it to unblock me on lotus |
Stebalien
left a comment
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.
This will probably be fine given that nothing really happens outside of Run (assuming that's the case?). I don't like, but it'll probably be fine.
f3.go
Outdated
| select { | ||
| case <-time.After(aim): | ||
| case <-ctx.Done(): | ||
| return nil |
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.
This should be an error.
| } | ||
|
|
||
| // Run start the module. It will exit when context is cancelled. | ||
| func (m *F3) Run(initialInstance uint64, ctx context.Context) error { |
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.
unrelated, we should get the initial instance from the certificate store.
f3.go
Outdated
| ctx, cancel := context.WithCancel(ctx) | ||
| defer cancel() | ||
|
|
||
| if m.CertStore == nil { |
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.
Make the certstore private or someone will trip over it.
Also fix a off-by-one in GetTipsetByEpoch Signed-off-by: Jakub Sztandera <oss@kubuxu.com>
Signed-off-by: Jakub Sztandera <oss@kubuxu.com>
Signed-off-by: Jakub Sztandera <oss@kubuxu.com>
Signed-off-by: Jakub Sztandera <oss@kubuxu.com>
ab1c684 to
b7e417e
Compare
|
Merging to unblock further work |
Also fix a off-by-one in GetTipsetByEpoch