test
This commit is contained in:
@@ -456,9 +456,9 @@ int32_t komodo_kmdbtcusd(int32_t rwflag,uint64_t *kmdbtcp,uint64_t *btcusdp,int3
|
||||
static uint64_t *KMDBTCS,*BTCUSDS; static int32_t maxheight; int32_t incr = 10000;
|
||||
if ( height >= maxheight )
|
||||
{
|
||||
KMDBTCS = realloc(KMDBTCS,((incr + maxheight) * sizeof(*KMDBTCS)));
|
||||
KMDBTCS = (uint64_t *)realloc(KMDBTCS,((incr + maxheight) * sizeof(*KMDBTCS)));
|
||||
memset(&KMDBTCS[maxheight],0,(incr * sizeof(*KMDBTCS)));
|
||||
BTCUSDS = realloc(BTCUSDS,((incr + maxheight) * sizeof(*BTCUSDS)));
|
||||
BTCUSDS = (uint64_t *)realloc(BTCUSDS,((incr + maxheight) * sizeof(*BTCUSDS)));
|
||||
memset(&BTCUSDS[maxheight],0,(incr * sizeof(*BTCUSDS)));
|
||||
maxheight += incr;
|
||||
}
|
||||
@@ -493,7 +493,7 @@ uint64_t komodo_paxpriceB(uint64_t *seedp,int32_t height,char *base,char *rel,ui
|
||||
}
|
||||
numvotes = (int32_t)(sizeof(Peggy_inds)/sizeof(*Peggy_inds));
|
||||
memset(votes,0,sizeof(votes));
|
||||
//if ( komodo_kmdbtcusd(0,&kmdbtc,&btcusd,height) < 0 )
|
||||
if ( komodo_kmdbtcusd(0,&kmdbtc,&btcusd,height) < 0 )
|
||||
{
|
||||
memset(btcusds,0,sizeof(btcusds));
|
||||
memset(kmdbtcs,0,sizeof(kmdbtcs));
|
||||
@@ -504,7 +504,7 @@ uint64_t komodo_paxpriceB(uint64_t *seedp,int32_t height,char *base,char *rel,ui
|
||||
}
|
||||
kmdbtc = komodo_paxcorrelation(kmdbtcs,numvotes,*seedp) * 539;
|
||||
btcusd = komodo_paxcorrelation(btcusds,numvotes,*seedp) * 539;
|
||||
//komodo_kmdbtcusd(1,&kmdbtc,&btcusd,height);
|
||||
komodo_kmdbtcusd(1,&kmdbtc,&btcusd,height);
|
||||
}
|
||||
for (i=nonz=0; i<numvotes; i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user