test
This commit is contained in:
@@ -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 )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user