-
Notifications
You must be signed in to change notification settings - Fork 83
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
Fix remaining stale operator ID cases #1240
Conversation
This reverts commit 25ebc4f.
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.
looks good, just 1 comment
…operator-id # Conflicts: # network/p2p/p2p.go # operator/validator/controller.go # operator/validator/mocks/controller.go
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.
following your changes, we can adjust
func (eh *EventHandler) validatorAddedEventToShare(
event *contract.ContractValidatorAdded,
shareEncryptionKeyProvider ShareEncryptionKeyProvider,
operatorData *registrystorage.OperatorData,
sharePublicKeys [][]byte,
encryptedKeys [][]byte,
) (*ssvtypes.SSVShare, *bls.SecretKey, error)
in eventhandler
pkg
to receive getOperatorId
instead of operatorData
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.
Should we merge stage
into our current branch? There might be additional changes related to operatorID
we haven't accounted for yet.
@nkryuchkov , lets fix @olegshmuelov 's comments and merge |
I think we should. Done.
Actually I think we don't even need to pass EventHandler's fields to its methods because they also have access to these fields. Simplified. |
done |
c42d49d
fix passing stale operator ID to