Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
65aefc037d
  1. 4
      iguana/iguana_ramchain.c

4
iguana/iguana_ramchain.c

@ -558,7 +558,7 @@ int32_t iguana_vinscriptdecode(struct iguana_info *coin,struct iguana_ramchain *
return(0); return(0);
} }
len += iguana_rwvarint32(0,&metascript[len],(void *)&totalsize); len += iguana_rwvarint32(0,&metascript[len],(void *)&totalsize);
*metalenp = -len; *metalenp = 0;
if ( s->rawmode != 0 ) if ( s->rawmode != 0 )
{ {
*metalenp = 0; *metalenp = 0;
@ -655,7 +655,7 @@ int32_t iguana_vinscriptdecode(struct iguana_info *coin,struct iguana_ramchain *
printf("suffixlen.%d totalsize.%d vs len.%d\n",suffixlen,totalsize,len); printf("suffixlen.%d totalsize.%d vs len.%d\n",suffixlen,totalsize,len);
else memcpy(&_script[scriptlen],&metascript[len],suffixlen), scriptlen += suffixlen, len += suffixlen; else memcpy(&_script[scriptlen],&metascript[len],suffixlen), scriptlen += suffixlen, len += suffixlen;
} }
*metalenp = len; *metalenp = len - 1;
return(scriptlen); return(scriptlen);
} }

Loading…
Cancel
Save