-
Couldn't load subscription status.
- Fork 1
Add Replication of Notarizations #117
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
a839697 to
bfaf226
Compare
Signed-off-by: Sam Liokumovich <65994425+samliok@users.noreply.github.com>
Signed-off-by: Sam Liokumovich <65994425+samliok@users.noreply.github.com>
replication.go
Outdated
|
|
||
| func (r *ReplicationState) collectFutureNotarizations(currentRound uint64) { | ||
| // round to start collecting notarizations | ||
| start := max(r.highestNotarizedRound(), currentRound) |
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.
what if we have "holes" in the receivedNotarizations? e.g if we asked starting from round 100 and we are given rounds 101, 103, 104...
We will never replicate 102 with this logic.
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.
we have the same problem with requesting finalization certificates as well. I think for this PR we should assume our requests are responded to in full, and handle incomplete requests in a later pr. I think we can add it in the same PR as #82
epoch.go
Outdated
| if !ok { | ||
| emptyVotes, ok := e.emptyVotes[currentRound] | ||
| if !ok || emptyVotes.emptyNotarization == nil { | ||
| // this can happen because we deleted an old empty notarization |
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.
we can only delete it if we have indexed it in storage, no? So shouldn't we retrieve it from storage for that node?
e875f04 to
c15c5b6
Compare
No description provided.