diff --git a/iguana/dpow/dpow_fsm.c b/iguana/dpow/dpow_fsm.c index 6c6527d0a..411c40b8d 100755 --- a/iguana/dpow/dpow_fsm.c +++ b/iguana/dpow/dpow_fsm.c @@ -270,9 +270,16 @@ void dpow_statemachinestart(void *ptr) if ( kmdheight >= 0 ) { ht = kmdheight;///strcmp("KMD",src->symbol) == 0 ? kmdheight : bp->height; - if ( ht == 0 || strcmp("KMD",dest->symbol) == 0 ) - ht = strcmp("KMD",src->symbol) == 0 ? src->longestchain : dest->longestchain; - bp->numnotaries = komodo_notaries(src->symbol,pubkeys,ht); + if ( strcmp("KMD",dest->symbol) == 0 ) + { + bp->numnotaries = komodo_notaries(dest->symbol,pubkeys,ht); + } + else + { + if ( ht == 0 ) + ht = strcmp("KMD",src->symbol) == 0 ? src->longestchain : dest->longestchain; + bp->numnotaries = komodo_notaries(src->symbol,pubkeys,ht); + } for (i=0; inumnotaries; i++) { //int32_t j; for (j=0; j<33; j++)