-
Notifications
You must be signed in to change notification settings - Fork 2
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
base: main
Are you sure you want to change the base?
Conversation
p2p/pkg/rpc/validator/service.go
Outdated
@@ -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{}{ |
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.
Why is it more convenient to get notification for not opted in validators?
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.
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?
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 could add index/time here in the slot info: https://github.com/primev/mev-commit/blob/main/p2p/pkg/rpc/validator/service.go#L227
1c5af58
to
7c7a50e
Compare
Describe your changes
Issue ticket number and link
Fixes # (issue)
Checklist before requesting a review