Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
fae6181836
  1. 11
      iguana/iguana_ramchain.c

11
iguana/iguana_ramchain.c

@ -632,7 +632,7 @@ int32_t iguana_vinscriptdecode(struct iguana_info *coin,struct iguana_ramchain *
else else
{ {
_script[scriptlen++] = plen; _script[scriptlen++] = plen;
printf("plen.%d\n",i); //printf("plen.%d\n",i);
memcpy(&_script[scriptlen],pubkey,plen), scriptlen += plen; memcpy(&_script[scriptlen],pubkey,plen), scriptlen += plen;
} }
} }
@ -652,15 +652,16 @@ int32_t iguana_vinscriptdecode(struct iguana_info *coin,struct iguana_ramchain *
printf("suffixlen.%d\n",suffixlen); printf("suffixlen.%d\n",suffixlen);
else memcpy(&_script[scriptlen],&metascript[len],suffixlen), scriptlen += suffixlen, len += suffixlen; else memcpy(&_script[scriptlen],&metascript[len],suffixlen), scriptlen += suffixlen, len += suffixlen;
} }
//printf("vindecode[%d] -> stacksize.%d sigslen.%d numsigs.%d numpubs.%d p2shlen.%d suffixlen.%d = %d totalsize.%d len.%d\n",s->scriptoffset,stacksize,sigslen,s->numsigs,s->numpubkeys,p2shlen,suffixlen,scriptlen,totalsize,len); if ( s->sequenceid != 0 )
if ( (*sequenceidp= s->sequenceid) == 3 ) printf("vindecode[%d] -> stacksize.%d sigslen.%d numsigs.%d numpubs.%d p2shlen.%d suffixlen.%d = %d totalsize.%d len.%d seq.%d\n",s->scriptoffset,stacksize,sigslen,s->numsigs,s->numpubkeys,p2shlen,suffixlen,scriptlen,totalsize,len,s->sequenceid);
if ( s->sequenceid == 3 )
{ {
len += iguana_rwvarint32(0,&metascript[len],(void *)sequenceidp); len += iguana_rwvarint32(0,&metascript[len],(void *)sequenceidp);
printf("nonstandard sequence decoded.%x offset.[%d]\n",*sequenceidp,s->scriptoffset); printf("nonstandard sequence decoded.%x offset.[%d]\n",*sequenceidp,s->scriptoffset);
} }
else if ( *sequenceidp == 1 ) else if ( s->sequenceid == 1 )
*sequenceidp = 0xffffffff; *sequenceidp = 0xffffffff;
else if ( *sequenceidp == 2 ) else if ( s->sequenceid == 2 )
*sequenceidp = 0xfffffffe; *sequenceidp = 0xfffffffe;
*metalenp = len; *metalenp = len;
return(scriptlen); return(scriptlen);

Loading…
Cancel
Save