jl777 8 years ago
parent
commit
c61b94cd19
  1. 2
      iguana/dpow/dpow_network.c

2
iguana/dpow/dpow_network.c

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

Loading…
Cancel
Save