Skip to content
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

feat: instant bridge service #610

Draft
wants to merge 39 commits into
base: main
Choose a base branch
from
Draft

feat: instant bridge service #610

wants to merge 39 commits into from

Conversation

aloknerurkar
Copy link
Collaborator

Describe your changes

Issue ticket number and link

Fixes # (issue)

Checklist before requesting a review

  • I have added tests that prove my fix is effective or that my feature works
  • I have made corresponding changes to the documentation

@aloknerurkar aloknerurkar requested a review from Mikelle February 21, 2025 14:56
@@ -273,30 +281,29 @@ func (s *Service) processEpoch(ctx context.Context, epoch uint64, epochTime int6

optedInSlots := make([]map[string]interface{}, 0)
for slot, info := range validators {
optedInSlots = append(optedInSlots, map[string]interface{}{
Copy link
Member

Choose a reason for hiding this comment

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

Why is it more convenient to get notification for not opted in validators?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

In order to estimate the time we need the exact index of the slot in the epoch. So if we send just the opted in slots, we have to calculate the index of the slot in the epoch which was more complicated.

Other option is to put the start time of each slot in the notification. But I thought this is easier. Wdyt?

Copy link
Member

Choose a reason for hiding this comment

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

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.

2 participants