test
This commit is contained in:
@@ -452,7 +452,6 @@ uint64_t komodo_paxprice(uint64_t *seedp,int32_t height,char *base,char *rel,uin
|
|||||||
{
|
{
|
||||||
int32_t i,j,k,ind,zeroes,numvotes,wt,nonz; int64_t delta; uint64_t lastprice,tolerance,den,densum,sum=0,votes[sizeof(Peggy_inds)/sizeof(*Peggy_inds)],btcusds[sizeof(Peggy_inds)/sizeof(*Peggy_inds)],kmdbtcs[sizeof(Peggy_inds)/sizeof(*Peggy_inds)],kmdbtc,btcusd;
|
int32_t i,j,k,ind,zeroes,numvotes,wt,nonz; int64_t delta; uint64_t lastprice,tolerance,den,densum,sum=0,votes[sizeof(Peggy_inds)/sizeof(*Peggy_inds)],btcusds[sizeof(Peggy_inds)/sizeof(*Peggy_inds)],kmdbtcs[sizeof(Peggy_inds)/sizeof(*Peggy_inds)],kmdbtc,btcusd;
|
||||||
*seedp = komodo_seed(height);
|
*seedp = komodo_seed(height);
|
||||||
printf("paxprice set seed.%llx\n",(long long)*seedp);
|
|
||||||
if ( basevolume > KOMODO_PAXMAX )
|
if ( basevolume > KOMODO_PAXMAX )
|
||||||
{
|
{
|
||||||
printf("komodo_paxprice overflow %.8f\n",dstr(basevolume));
|
printf("komodo_paxprice overflow %.8f\n",dstr(basevolume));
|
||||||
|
|||||||
@@ -1493,18 +1493,18 @@ void komodo_args()
|
|||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
while ( fname[strlen(fname)-1] != '\\' )
|
while ( fname[strlen(fname)-1] != '\\' )
|
||||||
fname[strlen(fname)-1] = 0;
|
fname[strlen(fname)-1] = 0;
|
||||||
strcat(fname,"/.komodo/komodo.conf");
|
strcat(fname,".komodo/komodo.conf");
|
||||||
#else
|
#else
|
||||||
while ( fname[strlen(fname)-1] != '/' )
|
while ( fname[strlen(fname)-1] != '/' )
|
||||||
fname[strlen(fname)-1] = 0;
|
fname[strlen(fname)-1] = 0;
|
||||||
strcat(fname,"/.komodo/komodo.conf");
|
strcat(fname,".komodo/komodo.conf");
|
||||||
#endif
|
#endif
|
||||||
if ( (fp= fopen(fname,"rb")) != 0 )
|
if ( (fp= fopen(fname,"rb")) != 0 )
|
||||||
{
|
{
|
||||||
komodo_userpass(username,password,fp);
|
komodo_userpass(username,password,fp);
|
||||||
sprintf(KMDUSERPASS,"%s:%s",username,password);
|
sprintf(KMDUSERPASS,"%s:%s",username,password);
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
printf("KOMODO.(%s) -> userpass.(%s)\n",fname,KMDUSERPASS);
|
//printf("KOMODO.(%s) -> userpass.(%s)\n",fname,KMDUSERPASS);
|
||||||
} else printf("couldnt open.(%s)\n",fname);
|
} else printf("couldnt open.(%s)\n",fname);
|
||||||
}
|
}
|
||||||
//fprintf(stderr,"%s chain params initialized\n",ASSETCHAINS_SYMBOL);
|
//fprintf(stderr,"%s chain params initialized\n",ASSETCHAINS_SYMBOL);
|
||||||
|
|||||||
Reference in New Issue
Block a user