test
This commit is contained in:
@@ -116,11 +116,15 @@ int32_t komodo_rwapproval(int32_t rwflag,uint8_t *opretbuf,struct pax_transactio
|
||||
else
|
||||
{
|
||||
for (i=0; i<32; i++)
|
||||
{
|
||||
((uint8_t *)&pax->txid)[i] = opretbuf[len++];
|
||||
printf("%02x ",((uint8_t *)&pax->txid)[i]);
|
||||
}
|
||||
pax->vout = opretbuf[len++];
|
||||
pax->vout += ((uint32_t)opretbuf[len++] << 8);
|
||||
printf(" txid v.%d\n",pax->vout);
|
||||
}
|
||||
len += iguana_rwnum(rwflag,&opretbuf[len],sizeof(pax->fiatoshis),&pax->komodoshis);
|
||||
len += iguana_rwnum(rwflag,&opretbuf[len],sizeof(pax->komodoshis),&pax->komodoshis);
|
||||
len += iguana_rwnum(rwflag,&opretbuf[len],sizeof(pax->fiatoshis),&pax->fiatoshis);
|
||||
len += iguana_rwnum(rwflag,&opretbuf[len],sizeof(pax->height),&pax->height);
|
||||
len += iguana_rwnum(rwflag,&opretbuf[len],sizeof(pax->otherheight),&pax->otherheight);
|
||||
@@ -135,6 +139,7 @@ int32_t komodo_rwapproval(int32_t rwflag,uint8_t *opretbuf,struct pax_transactio
|
||||
memcpy(pax->rmd160,&opretbuf[len],20), len += 20;
|
||||
for (i=0; i<4; i++)
|
||||
pax->source[i] = opretbuf[len++];
|
||||
printf("%02x %02x %02x %02x\n",source[0],source[1],source[2],source[3]);
|
||||
}
|
||||
return(len);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user