Browse Source

Test

etomic
jl777 8 years ago
parent
commit
7d99eddcf9
  1. 6
      iguana/exchanges/LP_bitcoin.c

6
iguana/exchanges/LP_bitcoin.c

@ -1321,7 +1321,7 @@ int32_t bitcoin_assembler(void *ctx,cJSON *logarray,uint8_t script[IGUANA_MAXSCR
iguana_pushdata(stacks,0,rmd160,sizeof(rmd160));
break;
case IGUANA_OP_HASH160:
if ( datalen == 32 )
/*if ( datalen == 32 )
{
revcalc_rmd160_sha256(rmd160,*(bits256 *)databuf);
printf("SPECIAL CASE REVERSE\n");
@ -1343,8 +1343,8 @@ int32_t bitcoin_assembler(void *ctx,cJSON *logarray,uint8_t script[IGUANA_MAXSCR
calc_rmd160_sha256(rmd160,databuf,datalen);
for (i=0; i<20; i++)
printf("%02x",rmd160[i]);
printf(" <- rmd160 databuf\n");
if ( datalen == 32 )
printf(" <- rmd160 databuf\n");*/
if ( 0 && datalen == 32 )
calc_rmd160_sha256(rmd160,revdatabuf,datalen);
else calc_rmd160_sha256(rmd160,databuf,datalen);
iguana_pushdata(stacks,0,rmd160,sizeof(rmd160));

Loading…
Cancel
Save