-
Notifications
You must be signed in to change notification settings - Fork 214
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] - Improve visibility around poet registrations in events #6382
Conversation
5d7294a
to
8706d4a
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #6382 +/- ##
========================================
Coverage 79.7% 79.7%
========================================
Files 328 328
Lines 42771 42866 +95
========================================
+ Hits 34093 34196 +103
+ Misses 6746 6740 -6
+ Partials 1932 1930 -2 ☔ View full report in Codecov by Sentry. |
c0a6e95
to
c19dc73
Compare
events/events.go
Outdated
Current: current.Uint32(), | ||
Publish: publish.Uint32(), |
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.
NIT: current
epoch is arguably not that interesting, but the publish
epoch of the ATX and maybe the target
epoch (always publish
epoch + 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.
fyi: it's old EmitPoetWaitProof
event only renamed.
Changing these fields may require more work to adapt any automation which is already dependent on these events.
Maybe someone could spent quarter of an hour to look on all events and what could be improved, so i could include all these changes in this PR?
@poszu @ivan4th @fasmat WDYT?
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.
At the moment these equalities always hold true, since they is hardcoded:
current + 1 = publish
publish + 1 = target
However the first line doesn't need to be true - theoretically a PoET can run for longer than one epoch, the protocol would allow it. Only the second line is given by the protocol; the target epoch is always one after the publish epoch.
To know the current epoch one can just calculate it based on when that event was emitted and the time of genesis, but the publish epoch is the interesting data - in which epoch are we planning to publish the ATX we are building (and arguably which epoch are we targeting with it).
I'm not insisting on that change, since we don't support PoETs longer than one epoch yet anyway 🙂
109fd71
to
cbe14bb
Compare
5b9058c
to
505031a
Compare
bors merge |
Closes #5565 ## Motivation Provide new events for: - created poet client (URL) - registered in poet (URL, challenge, round) - got proof from poet (URL, round, ticks) - selected best poet proof (URL, round, ticks) ## Test Plan New functionality tested as a part of node/node_test and activation/nipost_test. ## TODO - [ ] Requires spacemeshos/api#382 than bump in that module version - [x] Explain motivation or link existing issue(s) - [x] Test changes and document test plan - [ ] Update documentation as needed - [x] Update [changelog](../CHANGELOG.md) as needed
Build failed: |
bors try |
Build failed: |
bors merge |
Closes #5565 ## Motivation Provide new events for: - created poet client (URL) - registered in poet (URL, challenge, round) - got proof from poet (URL, round, ticks) - selected best poet proof (URL, round, ticks) ## Test Plan New functionality tested as a part of node/node_test and activation/nipost_test. ## TODO - [x] Requires spacemeshos/api#382 than bump in that module version - [x] Explain motivation or link existing issue(s) - [x] Test changes and document test plan - [ ] Update documentation as needed - [x] Update [changelog](../CHANGELOG.md) as needed
Build failed: |
bors merge |
Closes #5565 ## Motivation Provide new events for: - created poet client (URL) - registered in poet (URL, challenge, round) - got proof from poet (URL, round, ticks) - selected best poet proof (URL, round, ticks) ## Test Plan New functionality tested as a part of node/node_test and activation/nipost_test. ## TODO - [x] Requires spacemeshos/api#382 than bump in that module version - [x] Explain motivation or link existing issue(s) - [x] Test changes and document test plan - [ ] Update documentation as needed - [x] Update [changelog](../CHANGELOG.md) as needed
Build failed: |
bors merge |
Canceled. |
bors merge |
Merge conflict. |
bors merge |
Closes #5565 ## Motivation Provide new events for: - created poet client (URL) - registered in poet (URL, challenge, round) - got proof from poet (URL, round, ticks) - selected best poet proof (URL, round, ticks) ## Test Plan New functionality tested as a part of node/node_test and activation/nipost_test. ## TODO - [x] Requires spacemeshos/api#382 than bump in that module version - [x] Explain motivation or link existing issue(s) - [x] Test changes and document test plan - [ ] Update documentation as needed - [x] Update [changelog](../CHANGELOG.md) as needed
Build failed:
|
bors merge |
Closes #5565 ## Motivation Provide new events for: - created poet client (URL) - registered in poet (URL, challenge, round) - got proof from poet (URL, round, ticks) - selected best poet proof (URL, round, ticks) ## Test Plan New functionality tested as a part of node/node_test and activation/nipost_test. ## TODO - [x] Requires spacemeshos/api#382 than bump in that module version - [x] Explain motivation or link existing issue(s) - [x] Test changes and document test plan - [ ] Update documentation as needed - [x] Update [changelog](../CHANGELOG.md) as needed
Build failed (retrying...): |
Closes #5565 ## Motivation Provide new events for: - created poet client (URL) - registered in poet (URL, challenge, round) - got proof from poet (URL, round, ticks) - selected best poet proof (URL, round, ticks) ## Test Plan New functionality tested as a part of node/node_test and activation/nipost_test. ## TODO - [x] Requires spacemeshos/api#382 than bump in that module version - [x] Explain motivation or link existing issue(s) - [x] Test changes and document test plan - [ ] Update documentation as needed - [x] Update [changelog](../CHANGELOG.md) as needed
Pull request successfully merged into develop. Build succeeded: |
Closes #5565
Motivation
Provide new events for:
Test Plan
New functionality tested as a part of node/node_test and activation/nipost_test.
TODO