Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
ce91220e16
  1. 4
      iguana/exchanges/bitcoin.c

4
iguana/exchanges/bitcoin.c

@ -675,9 +675,9 @@ int32_t _iguana_calcrmd160(struct iguana_info *coin,struct vin_info *vp)
memcpy(vp->rmd160,zero_rmd160,sizeof(zero_rmd160)); memcpy(vp->rmd160,zero_rmd160,sizeof(zero_rmd160));
return(IGUANA_SCRIPT_DATA); return(IGUANA_SCRIPT_DATA);
} }
if ( type != IGUANA_SCRIPT_OPRETURN ) if ( type != IGUANA_SCRIPT_OPRETURN && type != IGUANA_SCRIPT_DATA )
{ {
if ( vp->spendlen < sizeof(hexstr)/2-1) if ( vp->spendlen > 0 && vp->spendlen < sizeof(hexstr)/2-1 )
{ {
static FILE *fp; static FILE *fp;
init_hexbytes_noT(hexstr,vp->spendscript,vp->spendlen); init_hexbytes_noT(hexstr,vp->spendscript,vp->spendlen);

Loading…
Cancel
Save