|
@ -392,7 +392,7 @@ void dpow_bestconsensus(struct dpow_block *bp) |
|
|
{ |
|
|
{ |
|
|
bp->bestmask = masks[besti]; |
|
|
bp->bestmask = masks[besti]; |
|
|
bp->bestk = bestks[besti]; |
|
|
bp->bestk = bestks[besti]; |
|
|
//printf("set best to (%d %llx) recv.%llx\n",bp->bestk,(long long)bp->bestmask,(long long)recvmask);
|
|
|
printf("set best.%d to (%d %llx) recv.%llx\n",best,bp->bestk,(long long)bp->bestmask,(long long)recvmask); |
|
|
} |
|
|
} |
|
|
bp->recvmask = recvmask; |
|
|
bp->recvmask = recvmask; |
|
|
if ( bp->bestmask == 0 )//|| (time(NULL) / 180) != bp->lastepoch )
|
|
|
if ( bp->bestmask == 0 )//|| (time(NULL) / 180) != bp->lastepoch )
|
|
@ -769,7 +769,7 @@ void dpow_send(struct supernet_info *myinfo,struct dpow_info *dp,struct dpow_blo |
|
|
{ |
|
|
{ |
|
|
extralen = dpow_paxpending(extras,&paxwdcrc); |
|
|
extralen = dpow_paxpending(extras,&paxwdcrc); |
|
|
bp->paxwdcrc = bp->notaries[bp->myind].paxwdcrc = np->notarize.paxwdcrc = paxwdcrc; |
|
|
bp->paxwdcrc = bp->notaries[bp->myind].paxwdcrc = np->notarize.paxwdcrc = paxwdcrc; |
|
|
//dpow_bestconsensus(bp);
|
|
|
dpow_bestconsensus(bp); |
|
|
dpow_nanoutxoset(&np->notarize,bp,0); |
|
|
dpow_nanoutxoset(&np->notarize,bp,0); |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
|