test
This commit is contained in:
@@ -527,7 +527,7 @@ int32_t komodo_paxcmp(char *symbol,int32_t kmdheight,uint64_t value,uint64_t che
|
||||
return(-1);
|
||||
}
|
||||
}
|
||||
if ( value != checkvalue )
|
||||
if ( 0 && value != checkvalue )
|
||||
printf("%s.%d seed.%llx paxcmp value %llu != checkvalue %llu\n",symbol,kmdheight,(long long)seed,(long long)value,(long long)checkvalue);
|
||||
return(value != checkvalue);
|
||||
}
|
||||
@@ -589,7 +589,7 @@ const char *komodo_opreturn(int32_t height,uint64_t value,uint8_t *opretbuf,int3
|
||||
basesp->deposited += fiatoshis;
|
||||
didstats = 1;
|
||||
if ( strcmp(base,ASSETCHAINS_SYMBOL) == 0 )
|
||||
printf("########### %p deposited %s += %.8f\n",basesp,base,dstr(fiatoshis));
|
||||
printf("########### %p deposited %s += %.8f kmdheight.%d %.8f\n",basesp,base,dstr(fiatoshis),kmdheight,dstr(value));
|
||||
}
|
||||
}
|
||||
if ( didstats != 0 )
|
||||
@@ -716,8 +716,8 @@ const char *komodo_opreturn(int32_t height,uint64_t value,uint8_t *opretbuf,int3
|
||||
strcpy(pax->source,(char *)&opretbuf[opretlen-4]);
|
||||
}
|
||||
}
|
||||
} //else printf("opreturn none issued?\n");
|
||||
} //else printf("opreturn matches KMD? %s\n",(char *)&opretbuf[opretlen-4]);
|
||||
} else printf("opreturn none issued?\n");
|
||||
} else printf("opreturn matches KMD? %s\n",(char *)&opretbuf[opretlen-4]);
|
||||
}
|
||||
else if ( opretbuf[0] == 'X' )
|
||||
{
|
||||
|
||||
@@ -527,7 +527,7 @@ uint64_t PAX_fiatdest(uint64_t *seedp,int32_t tokomodo,char *destaddr,uint8_t pu
|
||||
if ( fiatoshis < 0 )
|
||||
shortflag = 1, fiatoshis = -fiatoshis;
|
||||
komodoshis = komodo_paxprice(seedp,height,base,(char *)"KMD",(uint64_t)fiatoshis);
|
||||
printf("PAX_fiatdest ht.%d price %s %.8f -> KMD %.8f seed.%llx\n",height,base,(double)fiatoshis/COIN,(double)komodoshis/COIN,(long long)*seedp);
|
||||
//printf("PAX_fiatdest ht.%d price %s %.8f -> KMD %.8f seed.%llx\n",height,base,(double)fiatoshis/COIN,(double)komodoshis/COIN,(long long)*seedp);
|
||||
if ( bitcoin_addr2rmd160(&addrtype,rmd160,coinaddr) == 20 )
|
||||
{
|
||||
PAX_pubkey(1,pubkey33,&addrtype,rmd160,base,&shortflag,tokomodo != 0 ? &komodoshis : &fiatoshis);
|
||||
|
||||
Reference in New Issue
Block a user