Skip to content

Conversation

@samliok
Copy link
Collaborator

@samliok samliok commented Mar 2, 2025

No description provided.

@samliok samliok marked this pull request as draft March 2, 2025 19:57
@samliok samliok force-pushed the note-replication branch from a839697 to bfaf226 Compare March 3, 2025 03:20
samliok and others added 8 commits March 2, 2025 22:43
@samliok samliok marked this pull request as ready for review March 6, 2025 21:12
@samliok samliok changed the title [wip] Add Replication of Notarizations Add Replication of Notarizations Mar 6, 2025
replication.go Outdated

func (r *ReplicationState) collectFutureNotarizations(currentRound uint64) {
// round to start collecting notarizations
start := max(r.highestNotarizedRound(), currentRound)
Copy link
Collaborator

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.

Copy link
Collaborator Author

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
Copy link
Collaborator

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?

@samliok samliok marked this pull request as draft March 11, 2025 20:12
@samliok samliok closed this Mar 13, 2025
@samliok samliok deleted the note-replication branch March 20, 2025 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants