|
@ -1191,7 +1191,7 @@ void dpow_notarize_update(struct supernet_info *myinfo,struct dpow_info *dp,stru |
|
|
} |
|
|
} |
|
|
else if ( i == senderind && ((1LL << bp->myind) & bp->bestmask) != 0 && ((1LL << i) & bp->bestmask) != 0 && ((1LL << bp->myind) & bp->notaries[i].recvmask) == 0 ) |
|
|
else if ( i == senderind && ((1LL << bp->myind) & bp->bestmask) != 0 && ((1LL << i) & bp->bestmask) != 0 && ((1LL << bp->myind) & bp->notaries[i].recvmask) == 0 ) |
|
|
flag = senderind; |
|
|
flag = senderind; |
|
|
if ( 1 && bp->myind <= 1 && bp->notaries[i].paxwdcrc != 0 ) |
|
|
if ( 0 && bp->myind <= 1 && bp->notaries[i].paxwdcrc != 0 ) |
|
|
printf("%d.(%x %d %llx r%llx) ",i,bp->notaries[i].paxwdcrc,bp->notaries[i].bestk,(long long)bp->notaries[i].bestmask,(long long)bp->notaries[i].recvmask); |
|
|
printf("%d.(%x %d %llx r%llx) ",i,bp->notaries[i].paxwdcrc,bp->notaries[i].bestk,(long long)bp->notaries[i].bestmask,(long long)bp->notaries[i].recvmask); |
|
|
} |
|
|
} |
|
|
if ( flag >= 0 ) |
|
|
if ( flag >= 0 ) |
|
@ -1201,7 +1201,7 @@ void dpow_notarize_update(struct supernet_info *myinfo,struct dpow_info *dp,stru |
|
|
srchash.bytes[i] = dp->minerkey33[i+1]; |
|
|
srchash.bytes[i] = dp->minerkey33[i+1]; |
|
|
dpow_send(myinfo,dp,bp,srchash,bp->hashmsg,0,bp->height,(void *)"ping",0); |
|
|
dpow_send(myinfo,dp,bp,srchash,bp->hashmsg,0,bp->height,(void *)"ping",0); |
|
|
} |
|
|
} |
|
|
if ( 1 && bp->myind <= 1 ) |
|
|
if ( 0 && bp->myind <= 1 ) |
|
|
printf("recv.%llx best.(%d %llx) m.%d p.%d:%d b.%d\n",(long long)bp->recvmask,bp->bestk,(long long)bp->bestmask,matches,paxmatches,paxbestmatches,bestmatches); |
|
|
printf("recv.%llx best.(%d %llx) m.%d p.%d:%d b.%d\n",(long long)bp->recvmask,bp->bestk,(long long)bp->bestmask,matches,paxmatches,paxbestmatches,bestmatches); |
|
|
if ( bestmatches >= bp->minsigs && paxbestmatches >= bp->minsigs ) |
|
|
if ( bestmatches >= bp->minsigs && paxbestmatches >= bp->minsigs ) |
|
|
{ |
|
|
{ |
|
@ -1231,8 +1231,10 @@ void dpow_notarize_update(struct supernet_info *myinfo,struct dpow_info *dp,stru |
|
|
{ |
|
|
{ |
|
|
if ( bp->paxwdcrc == bp->notaries[i].paxwdcrc ) |
|
|
if ( bp->paxwdcrc == bp->notaries[i].paxwdcrc ) |
|
|
paxmatches++; |
|
|
paxmatches++; |
|
|
else printf("%x.%d ",bp->notaries[i].paxwdcrc); |
|
|
else if ( bp->myind <= 1 ) |
|
|
|
|
|
printf("%x.%d ",bp->notaries[i].paxwdcrc,i); |
|
|
} |
|
|
} |
|
|
|
|
|
if ( bp->myind <= 1 ) |
|
|
printf("mypaxcrc.%x\n",bp->paxwdcrc); |
|
|
printf("mypaxcrc.%x\n",bp->paxwdcrc); |
|
|
} |
|
|
} |
|
|
if ( (rand() % 130) == 0 ) |
|
|
if ( (rand() % 130) == 0 ) |
|
|