Skip to content
Snippets Groups Projects
Commit 48f9be50 authored by Benjamin Wenger's avatar Benjamin Wenger
Browse files

fixed a bug

parent da088d90
No related branches found
No related tags found
2 merge requests!67Release,!55fully implemented trial hashing of identity fingerprints. Needs tests.
......@@ -55,12 +55,12 @@ func NotificationForMe(messageHash, idFP string, preimages string) (*Notificatio
}
//check if any preimages match with the passed in data
for i:=0;i<len(preimageList);i++{
if fingerprint.CheckIdentityFpFromMessageHash(idFpBytes, messageHashBytes, preimageList[i].Data){
for _, preimage := range preimageList {
if fingerprint.CheckIdentityFpFromMessageHash(idFpBytes, messageHashBytes, preimage.Data){
return &NotificationForMeReport{
forMe: true,
tYpe: preimageList[i].Type,
source: preimageList[i].Source,
tYpe: preimage.Type,
source: preimage.Source,
}, nil
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment