Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

Feat: Add validator tip set #673

Merged
merged 14 commits into from
Feb 2, 2024
Merged

Feat: Add validator tip set #673

merged 14 commits into from
Feb 2, 2024

Conversation

hmoog
Copy link
Contributor

@hmoog hmoog commented Jan 17, 2024

No description provided.

return
}

committee, exists := t.retrieveCommitteeInSlot(tipMetadata.Block().ID().Slot())
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a hot path that reads data from the committee KVStore for each block - we should add a cache at some level. Maybe we should have a committee cache in SeatManager and clear it whenever SybilProtection.Reset() is called? Not necessarily as part of this PR, but then we should create an issue for that.

@piotrm50 piotrm50 merged commit aa124fe into develop Feb 2, 2024
4 checks passed
@piotrm50 piotrm50 deleted the feat/validator-tipset branch February 2, 2024 08:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Introduce a special tip pool to track ValidatorBlocks and their future cones.
3 participants