jl777 8 years ago
parent
commit
57c06d2981
  1. 6
      iguana/iguana_interpreter.c

6
iguana/iguana_interpreter.c

@ -1351,6 +1351,12 @@ int32_t bitcoin_assembler(struct iguana_info *coin,cJSON *logarray,uint8_t scrip
break; break;
case IGUANA_OP_HASH160: case IGUANA_OP_HASH160:
calc_rmd160_sha256(revrmd160,databuf,datalen); calc_rmd160_sha256(revrmd160,databuf,datalen);
for (i=0; i<20; i++)
{
rmd160[i] = revrmd160[19-i];
printf("%02x",revrmd160[i]);
}
printf(" <- rev OP_HASH160\n");
iguana_pushdata(stacks,0,revrmd160,sizeof(rmd160)); iguana_pushdata(stacks,0,revrmd160,sizeof(rmd160));
break; break;
case IGUANA_OP_SHA256: case IGUANA_OP_SHA256:

Loading…
Cancel
Save