jl777 8 years ago
parent
commit
0a872cda6f
  1. 4
      iguana/iguana_interpreter.c

4
iguana/iguana_interpreter.c

@ -1340,8 +1340,8 @@ int32_t bitcoin_assembler(struct iguana_info *coin,cJSON *logarray,uint8_t scrip
uint8_t rmd160[20],revdata[0x100]; bits256 hash; uint8_t rmd160[20],revdata[0x100]; bits256 hash;
if ( (datalen= iguana_databuf(databuf,args[0])) <= sizeof(revdata) ) if ( (datalen= iguana_databuf(databuf,args[0])) <= sizeof(revdata) )
{ {
for (i=0; i<datalen; i++) //for (i=0; i<datalen; i++)
revdata[i] = databuf[datalen-1-i]; // revdata[i] = databuf[i];
} else printf("datalen.%d too big for %d\n",datalen,(int32_t)sizeof(revdata)); } else printf("datalen.%d too big for %d\n",datalen,(int32_t)sizeof(revdata));
switch ( op->opcode ) switch ( op->opcode )
{ {

Loading…
Cancel
Save