-
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] - Sync malfeasance proofs continuously #5718
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #5718 +/- ##
========================================
Coverage 80.1% 80.1%
========================================
Files 283 285 +2
Lines 29410 29668 +258
========================================
+ Hits 23575 23784 +209
- Misses 4209 4243 +34
- Partials 1626 1641 +15 ☔ View full report in Codecov by Sentry. |
bors try |
tryBuild failed: |
bors try |
tryBuild failed: |
bors try |
tryBuild succeeded: |
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.
it would be also better to clear malfeasence sync timestamp when loading checkpoint
syncer/syncer.go
Outdated
@@ -267,6 +273,20 @@ func (s *Syncer) Start() { | |||
} | |||
} | |||
}) | |||
if !s.cfg.Standalone { | |||
s.eg.Go(func() 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.
i think it will be better if background jobs were spawned in the same place. in the syncAtx method we do synchronous requests and then spawn background job to check atxs from peers, maybe spawn background job for malfeasance sync there as well?
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.
done
done |
97f8228
to
b356f1f
Compare
bors merge |
Canceled. |
bors merge |
## Motivation Need to sync malfeasance proofs continuously to facilitate distributed verification. See #5306
Pull request successfully merged into develop. Build succeeded: |
Motivation
Need to sync malfeasance proofs continuously to facilitate distributed verification. See #5306
Description
Implemented the proposed protocol from #5306 (comment)
For now malfeasance proof IDs are requested simultaneously from several peers, should the number of malfeasant identities grow substantially, we can make these requests sequential.
Test Plan
Verified on mainnet. Checked sync during startup and also by deleting malfeasance from db while
go-spacemesh
is running to make sure they're restored during resync.TODO