This commit is contained in:
jl777
2016-12-22 23:25:14 +02:00
parent 8952ee9d11
commit 0ce26ccf55
2 changed files with 4 additions and 4 deletions

View File

@@ -636,7 +636,7 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above
printf(" kht.%d ht.%d %.8f %.8f blockhash couldnt find vout.[%d]\n",kmdheights[i-1],otherheights[i-1],dstr(values[i-1]),dstr(srcvalues[i]),i);
}
}
if ( matched != num )
if ( height <= chainActive.Tip()->nHeight && matched != num )
{
printf("WOULD REJECT %s: ht.%d (%c) matched.%d vs num.%d\n",symbol,height,opcode,matched,num);
// can easily happen depending on order of loading
@@ -1011,7 +1011,7 @@ void komodo_passport_iteration()
isrealtime = 1;
RTmask |= (1LL << baseid);
memcpy(refsp->RTbufs[baseid+1],buf,sizeof(refsp->RTbufs[baseid+1]));
} //else fprintf(stderr,"%s not RT\n",base);
} else fprintf(stderr,"%s not RT %u %u %d\n",base,buf[0],buf[1],(int32_t)(time(NULL)-buf[2]));
} //else fprintf(stderr,"%s size error RT\n",base);
fclose(fp);
} //else fprintf(stderr,"%s open error RT\n",base);

View File

@@ -481,8 +481,8 @@ uint64_t komodo_paxprice(uint64_t *seedp,int32_t height,char *base,char *rel,uin
}
if ( nonz <= (numvotes >> 1) )
{
printf("kmdbtc %llu btcusd %llu\n",(long long)kmdbtc,(long long)btcusd);
printf("komodo_paxprice nonz.%d of numvotes.%d\n",nonz,numvotes);
//printf("kmdbtc %llu btcusd %llu\n",(long long)kmdbtc,(long long)btcusd);
//printf("komodo_paxprice nonz.%d of numvotes.%d\n",nonz,numvotes);
return(0);
}
return(komodo_paxcorrelation(votes,numvotes,*seedp) * basevolume / 100000);