test
This commit is contained in:
@@ -688,8 +688,12 @@ const char *komodo_opreturn(int32_t height,uint64_t value,uint8_t *opretbuf,int3
|
|||||||
komodo_gateway_deposit(coinaddr,komodoshis,(char *)"KMD",value,rmd160,txid,vout,'W',kmdheight,height,source,0);
|
komodo_gateway_deposit(coinaddr,komodoshis,(char *)"KMD",value,rmd160,txid,vout,'W',kmdheight,height,source,0);
|
||||||
if ( (pax= komodo_paxfind(txid,vout,'W')) != 0 )
|
if ( (pax= komodo_paxfind(txid,vout,'W')) != 0 )
|
||||||
{
|
{
|
||||||
if ( didstats != 0 )
|
if ( didstats != 0 && pax->didstats == 0 )
|
||||||
|
{
|
||||||
|
if ( strcmp(base,ASSETCHAINS_SYMBOL) == 0 )
|
||||||
|
printf("########### %p withdrawn %s += %.8f kmdht.%d ht.%d\n",basesp,base,dstr(value),kmdheight,height);
|
||||||
pax->didstats = 1;
|
pax->didstats = 1;
|
||||||
|
}
|
||||||
pax->type = opretbuf[0];
|
pax->type = opretbuf[0];
|
||||||
pax->validated = komodoshis;
|
pax->validated = komodoshis;
|
||||||
if ( strcmp(base,ASSETCHAINS_SYMBOL) == 0 )
|
if ( strcmp(base,ASSETCHAINS_SYMBOL) == 0 )
|
||||||
|
|||||||
@@ -527,7 +527,8 @@ uint64_t PAX_fiatdest(uint64_t *seedp,int32_t tokomodo,char *destaddr,uint8_t pu
|
|||||||
if ( fiatoshis < 0 )
|
if ( fiatoshis < 0 )
|
||||||
shortflag = 1, fiatoshis = -fiatoshis;
|
shortflag = 1, fiatoshis = -fiatoshis;
|
||||||
komodoshis = komodo_paxprice(seedp,height,base,(char *)"KMD",(uint64_t)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);
|
if ( strcmp(base,"RUB") == 0 )
|
||||||
|
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 )
|
if ( bitcoin_addr2rmd160(&addrtype,rmd160,coinaddr) == 20 )
|
||||||
{
|
{
|
||||||
PAX_pubkey(1,pubkey33,&addrtype,rmd160,base,&shortflag,tokomodo != 0 ? &komodoshis : &fiatoshis);
|
PAX_pubkey(1,pubkey33,&addrtype,rmd160,base,&shortflag,tokomodo != 0 ? &komodoshis : &fiatoshis);
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn)
|
|||||||
if(!pblocktemplate.get())
|
if(!pblocktemplate.get())
|
||||||
return NULL;
|
return NULL;
|
||||||
CBlock *pblock = &pblocktemplate->block; // pointer for convenience
|
CBlock *pblock = &pblocktemplate->block; // pointer for convenience
|
||||||
if ( ASSETCHAINS_SYMBOL[0] != 0 && chainActive.Tip()->nHeight > ASSETCHAINS_MINHEIGHT )
|
if ( ASSETCHAINS_SYMBOL[0] != 0 && chainActive.Tip()->nHeight >= ASSETCHAINS_MINHEIGHT )
|
||||||
{
|
{
|
||||||
isrealtime = komodo_isrealtime(&kmdheight);
|
isrealtime = komodo_isrealtime(&kmdheight);
|
||||||
while ( KOMODO_ON_DEMAND == 0 )
|
while ( KOMODO_ON_DEMAND == 0 )
|
||||||
|
|||||||
Reference in New Issue
Block a user