Browse Source

test

etomic
jl777 7 years ago
parent
commit
90257a19dc
  1. 7
      iguana/exchanges/LP_bitcoin.c

7
iguana/exchanges/LP_bitcoin.c

@ -3321,9 +3321,6 @@ bits256 bitcoin_sigtxid(char *symbol,uint8_t taddr,uint8_t pubtype,uint8_t p2sht
#endif
len += iguana_rwnum(1,&serialized[len],sizeof(hashtype),&hashtype);
}
revsigtxid = bits256_doublesha256(0,serialized,len);
for (i=0; i<sizeof(revsigtxid); i++)
sigtxid.bytes[31-i] = revsigtxid.bytes[i];
}
else
{
@ -3442,8 +3439,10 @@ bits256 bitcoin_sigtxid(char *symbol,uint8_t taddr,uint8_t pubtype,uint8_t p2sht
for (i=0; i<len; i++)
printf("%02x",serialized[i]);
printf(" B path version.%08x spendamount %.8f locktime %u hashtype %08x\n",dest.version,dstr(spendamount),dest.lock_time,hashtype);
sigtxid = bits256_doublesha256(0,serialized,len);
}
revsigtxid = bits256_doublesha256(0,serialized,len);
for (i=0; i<sizeof(revsigtxid); i++)
sigtxid.bytes[31-i] = revsigtxid.bytes[i];
char str[65]; printf("SIGTXID.(%s) numvouts.%d\n",bits256_str(str,sigtxid),dest.tx_out);
free(dest.vins);
free(dest.vouts);

Loading…
Cancel
Save