jl777 8 years ago
parent
commit
3df9e48d07
  1. 6
      iguana/iguana_notary.c

6
iguana/iguana_notary.c

@ -407,7 +407,7 @@ int32_t dpow_message_most(uint8_t *k_masks,int32_t num,cJSON *json,int32_t lastf
siglen = data[10]; siglen = data[10];
sig = data+11; sig = data+11;
memcpy(&k_masks[num << 7],data,datalen); memcpy(&k_masks[num << 7],data,datalen);
printf("num.%d sender.%d lastk.%d %llx\n",num,senderind,lastk,(long long)mask); printf(">>>>>>> num.%d sender.%d lastk.%d mask.%llx datalen.%d\n",num,senderind,lastk,(long long)mask,datalen);
num++; num++;
} }
} else printf("datalen.%d >= maxlen.%d\n",datalen,(int32_t)sizeof(data)); } else printf("datalen.%d >= maxlen.%d\n",datalen,(int32_t)sizeof(data));
@ -422,11 +422,11 @@ int32_t dpow_message_most(uint8_t *k_masks,int32_t num,cJSON *json,int32_t lastf
if ( n > most ) if ( n > most )
{ {
most = n; most = n;
memcpy(&k_masks[num << 7],&k_masks[i << 7],1 << 7); memcpy(&k_masks[num << 7],&k_masks[j << 7],1 << 7);
} }
} }
} }
//printf("most.%d n.%d\n",most,n); printf("lastflag.%d num.%d most.%d n.%d\n",lastflag,num,most,n);
return(num); return(num);
} }

Loading…
Cancel
Save