This commit is contained in:
jl777
2016-11-23 12:37:36 -03:00
parent 58033467ff
commit fbd1641c29

View File

@@ -116,10 +116,9 @@ int32_t komodo_rwapproval(int32_t rwflag,uint8_t *opretbuf,struct pax_transactio
else else
{ {
for (i=0; i<32; i++) for (i=0; i<32; i++)
{
((uint8_t *)&pax->txid)[31-i] = opretbuf[len++]; ((uint8_t *)&pax->txid)[31-i] = opretbuf[len++];
printf("%02x",((uint8_t *)&pax->txid)[31-i]); for (i=0; i<32; i++)
} printf("%02x",((uint8_t *)&pax->txid)[i]);
pax->vout = opretbuf[len++]; pax->vout = opretbuf[len++];
pax->vout += ((uint32_t)opretbuf[len++] << 8); pax->vout += ((uint32_t)opretbuf[len++] << 8);
printf(" txid v.%d\n",pax->vout); printf(" txid v.%d\n",pax->vout);