This commit is contained in:
jl777
2016-12-07 12:11:11 +02:00
parent d34d6ce4c2
commit b75c9445c7
2 changed files with 4 additions and 3 deletions

View File

@@ -656,8 +656,6 @@ const char *komodo_opreturn(int32_t height,uint64_t value,uint8_t *opretbuf,int3
} }
} else printf("opreturn none issued?\n"); } else printf("opreturn none issued?\n");
} }
if ( strcmp(source,ASSETCHAINS_SYMBOL) == 0 )
printf("source.%s opreturn[I] matches %s\n",source,(char *)&opretbuf[opretlen-4]);
} }
else if ( opretbuf[0] == 'W' )//&& opretlen >= 38 ) else if ( opretbuf[0] == 'W' )//&& opretlen >= 38 )
{ {

View File

@@ -473,7 +473,6 @@ uint64_t komodo_paxprice(uint64_t *seedp,int32_t height,char *base,char *rel,uin
} }
kmdbtc = komodo_paxcorrelation(kmdbtcs,numvotes,*seedp) * 539; kmdbtc = komodo_paxcorrelation(kmdbtcs,numvotes,*seedp) * 539;
btcusd = komodo_paxcorrelation(btcusds,numvotes,*seedp) * 539; btcusd = komodo_paxcorrelation(btcusds,numvotes,*seedp) * 539;
//printf("kmdbtc %llu btcusd %llu\n",(long long)kmdbtc,(long long)btcusd);
for (i=nonz=0; i<numvotes; i++) for (i=nonz=0; i<numvotes; i++)
{ {
if ( (votes[numvotes-1-i]= _komodo_paxprice(0,0,height-i,base,rel,100000,kmdbtc,btcusd)) == 0 ) if ( (votes[numvotes-1-i]= _komodo_paxprice(0,0,height-i,base,rel,100000,kmdbtc,btcusd)) == 0 )
@@ -481,7 +480,11 @@ uint64_t komodo_paxprice(uint64_t *seedp,int32_t height,char *base,char *rel,uin
else nonz++; else nonz++;
} }
if ( nonz <= (numvotes >> 1) ) 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);
return(0); return(0);
}
return(komodo_paxcorrelation(votes,numvotes,*seedp) * basevolume / 100000); return(komodo_paxcorrelation(votes,numvotes,*seedp) * basevolume / 100000);
} }