|
|
@ -261,6 +261,8 @@ void dpow_ratify_update(struct supernet_info *myinfo,struct dpow_info *dp,struct |
|
|
|
bp->lastepoch = (uint32_t)(time(NULL) / 100); |
|
|
|
printf("epoch %u\n",bp->lastepoch % bp->numnotaries); |
|
|
|
sleep(2 + (rand() % 7)); |
|
|
|
for (i=0; i<bp->numnotaries; i++) |
|
|
|
memset(&bp->notaries[i],0,sizeof(bp->notaries[i])); |
|
|
|
} |
|
|
|
} |
|
|
|
bp->notaries[bp->myind].ratifybestk = bp->ratifybestk; |
|
|
|