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
[Merged by Bors] - Verify self-generated POST proofs to catch errors early #4721
Conversation
@@ -211,6 +212,7 @@ func (b *Builder) StartSmeshing(coinbase types.Address, opts PostSetupOpts) erro | |||
return nil | |||
case err != nil: | |||
b.log.Panic("initialization failed: %v", err) | |||
return err |
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.
Note: this is only needed to pass the unit test that mocks log.Panic
... (and doesn't actually panic, allowing the code to proceed)
Codecov Report
@@ Coverage Diff @@
## develop #4721 +/- ##
=======================================
Coverage 77.3% 77.3%
=======================================
Files 255 255
Lines 28724 28784 +60
=======================================
+ Hits 22207 22257 +50
- Misses 5132 5141 +9
- Partials 1385 1386 +1
|
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.
❤️ LGTM
bors merge |
## Motivation Currently, if a node generated invalid POST proof (possibly because it has invalid POST data), it will learn it after Poet round ended (2 weeks) - upon publishing the ATX. It's suboptimal, we can check the proof right after it was created to give the operator more time to react. ## Changes Verify the generated POST proofs immediately after they are created. ## Test Plan - UT - system test - [x] manual test joining the mainnet
Pull request successfully merged into develop. Build succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page. |
Motivation
Currently, if a node generated invalid POST proof (possibly because it has invalid POST data), it will learn it after Poet round ended (2 weeks) - upon publishing the ATX. It's suboptimal, we can check the proof right after it was created to give the operator more time to react.
Changes
Verify the generated POST proofs immediately after they are created.
Test Plan