fix: revert wrong conflict resolution

introduced by 1bc0d37b40
This commit is contained in:
Patryk Osmaczko 2023-08-16 08:55:57 +02:00 committed by osmaczko
parent c4cd5775db
commit a42e2907b9
1 changed files with 1 additions and 8 deletions

View File

@ -1337,14 +1337,7 @@ func (m *Manager) validateAndFilterEvents(community *Community, events []Communi
validatedEvents := make([]CommunityEvent, 0, len(events))
validateEvent := func(event *CommunityEvent) error {
if event.Signature == nil || len(event.Signature) == 0 {
return errors.New("missing signature")
}
signer, err := crypto.SigToPub(
crypto.Keccak256(event.Payload),
event.Signature,
)
signer, err := event.RecoverSigner()
if err != nil {
return err
}