This commit is contained in:
jl777
2016-11-25 13:18:52 -03:00
parent 1c6e217d21
commit c98b3a088d

View File

@@ -486,8 +486,6 @@ const char *komodo_opreturn(int32_t height,uint64_t value,uint8_t *opretbuf,int3
typestr = "deposit"; typestr = "deposit";
printf("(%s) (%s) kmdheight.%d vs height.%d check %.8f vs %.8f tokomodo.%d %d seed.%llx\n",ASSETCHAINS_SYMBOL,base,kmdheight,height,dstr(checktoshis),dstr(value),komodo_is_issuer(),strncmp(ASSETCHAINS_SYMBOL,base,strlen(base)) == 0,(long long)seed); printf("(%s) (%s) kmdheight.%d vs height.%d check %.8f vs %.8f tokomodo.%d %d seed.%llx\n",ASSETCHAINS_SYMBOL,base,kmdheight,height,dstr(checktoshis),dstr(value),komodo_is_issuer(),strncmp(ASSETCHAINS_SYMBOL,base,strlen(base)) == 0,(long long)seed);
if ( kmdheight <= height ) if ( kmdheight <= height )
{
if ( tokomodo == 0 && strncmp(ASSETCHAINS_SYMBOL,base,strlen(base)) == 0 )
{ {
for (i=0; i<32; i++) for (i=0; i<32; i++)
printf("%02x",((uint8_t *)&txid)[i]); printf("%02x",((uint8_t *)&txid)[i]);
@@ -504,13 +502,13 @@ const char *komodo_opreturn(int32_t height,uint64_t value,uint8_t *opretbuf,int3
basesp->deposited += fiatoshis; basesp->deposited += fiatoshis;
printf("########### %p deposited %s += %.8f\n",basesp,base,dstr(fiatoshis)); printf("########### %p deposited %s += %.8f\n",basesp,base,dstr(fiatoshis));
} }
if ( tokomodo == 0 && strncmp(ASSETCHAINS_SYMBOL,base,strlen(base)) == 0 )
komodo_gateway_deposit(coinaddr,value,base,fiatoshis,rmd160,txid,vout,kmdheight,height,(char *)"KMD",0); komodo_gateway_deposit(coinaddr,value,base,fiatoshis,rmd160,txid,vout,kmdheight,height,(char *)"KMD",0);
} else printf("duplicate deposit\n"); } else printf("duplicate deposit\n");
} }
} }
} }
} }
}
else if ( opretbuf[0] == 'W' && opretlen >= 38 ) else if ( opretbuf[0] == 'W' && opretlen >= 38 )
{ {
iguana_rwnum(0,&opretbuf[34],sizeof(kmdheight),&kmdheight); iguana_rwnum(0,&opretbuf[34],sizeof(kmdheight),&kmdheight);