diff --git a/storage/profile_store.go b/storage/profile_store.go index 78ec173..8234bc8 100644 --- a/storage/profile_store.go +++ b/storage/profile_store.go @@ -151,7 +151,7 @@ func (ps *profileStore) eventHandler() { ev := ps.queue.Next() switch ev.EventType { case event.BlockPeer: - contact, exists := ps.profile.GetContact(ev.Data["Onion"]) + contact, exists := ps.profile.GetContact(ev.Data[event.RemotePeer]) if exists { contact.Blocked = true ps.save()