diff --git a/iguana/dpow/dpow_network.c b/iguana/dpow/dpow_network.c index 571925de6..4605fde88 100755 --- a/iguana/dpow/dpow_network.c +++ b/iguana/dpow/dpow_network.c @@ -227,8 +227,8 @@ void dpow_ratify_update(struct supernet_info *myinfo,struct dpow_info *dp,struct } if ( j == numdiff ) { - masks[counts[numdiff]] = bestmask; - bestks[counts[numdiff]] = bestk; + masks[numdiff] = bestmask; + bestks[numdiff] = bestk; counts[numdiff]++; numdiff++; } @@ -236,7 +236,7 @@ void dpow_ratify_update(struct supernet_info *myinfo,struct dpow_info *dp,struct besti = best_bestk = -1, best = 0; for (i=0; i best ) { best = counts[i];