Test
This commit is contained in:
@@ -736,8 +736,7 @@ const char *komodo_opreturn(int32_t height,uint64_t value,uint8_t *opretbuf,int3
|
|||||||
memset(base,0,sizeof(base));
|
memset(base,0,sizeof(base));
|
||||||
PAX_pubkey(0,&opretbuf[1],&addrtype,rmd160,base,&shortflag,&fiatoshis);
|
PAX_pubkey(0,&opretbuf[1],&addrtype,rmd160,base,&shortflag,&fiatoshis);
|
||||||
bitcoin_address(coinaddr,addrtype,rmd160,20);
|
bitcoin_address(coinaddr,addrtype,rmd160,20);
|
||||||
//checktoshis = PAX_fiatdest(&seed,tokomodo,destaddr,pubkey33,coinaddr,kmdheight,base,fiatoshis);
|
checktoshis = PAX_fiatdest(&seed,tokomodo,destaddr,pubkey33,coinaddr,kmdheight,base,fiatoshis);
|
||||||
checktoshis = PAX_fiatdest(&seed,tokomodo,destaddr,pubkey33,coinaddr,height,base,fiatoshis);
|
|
||||||
typestr = "deposit";
|
typestr = "deposit";
|
||||||
if ( kmdheight > 195000 || kmdheight <= height )
|
if ( kmdheight > 195000 || kmdheight <= height )
|
||||||
{
|
{
|
||||||
@@ -752,8 +751,7 @@ const char *komodo_opreturn(int32_t height,uint64_t value,uint8_t *opretbuf,int3
|
|||||||
printf("%02x",pubkey33[i]);
|
printf("%02x",pubkey33[i]);
|
||||||
printf(" checkpubkey check %.8f v %.8f dest.(%s) kmdheight.%d height.%d\n",dstr(checktoshis),dstr(value),destaddr,kmdheight,height);
|
printf(" checkpubkey check %.8f v %.8f dest.(%s) kmdheight.%d height.%d\n",dstr(checktoshis),dstr(value),destaddr,kmdheight,height);
|
||||||
}
|
}
|
||||||
if ( komodo_paxcmp(base,height,value,checktoshis,seed) == 0 )
|
if ( komodo_paxcmp(base,kmdheight,value,checktoshis,seed) == 0 )
|
||||||
// if ( komodo_paxcmp(base,kmdheight,value,checktoshis,seed) == 0 )
|
|
||||||
{
|
{
|
||||||
if ( (pax= komodo_paxfind(txid,vout,'D')) == 0 )
|
if ( (pax= komodo_paxfind(txid,vout,'D')) == 0 )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user