|
@ -75,7 +75,7 @@ int32_t iguana_voutset(struct iguana_info *coin,uint8_t *scriptspace,char *asmst |
|
|
p = &P[u->pkind]; |
|
|
p = &P[u->pkind]; |
|
|
vout->value = u->value; |
|
|
vout->value = u->value; |
|
|
vout->pk_script = scriptspace; |
|
|
vout->pk_script = scriptspace; |
|
|
if ( u->scriptpos != 0 && u->scriptlen > 0 ) |
|
|
if ( u->scriptlen > 0 ) |
|
|
{ |
|
|
{ |
|
|
iguana_voutsfname(coin,fname,u->fileid); |
|
|
iguana_voutsfname(coin,fname,u->fileid); |
|
|
if ( (fp= fopen(fname,"rb")) != 0 ) |
|
|
if ( (fp= fopen(fname,"rb")) != 0 ) |
|
@ -93,10 +93,11 @@ int32_t iguana_voutset(struct iguana_info *coin,uint8_t *scriptspace,char *asmst |
|
|
{ |
|
|
{ |
|
|
memset(&V,0,sizeof(V)); |
|
|
memset(&V,0,sizeof(V)); |
|
|
scriptlen = iguana_scriptgen(coin,&V.M,&V.N,coinaddr,scriptspace,asmstr,p->rmd160,u->type,(const struct vin_info *)&V,i); |
|
|
scriptlen = iguana_scriptgen(coin,&V.M,&V.N,coinaddr,scriptspace,asmstr,p->rmd160,u->type,(const struct vin_info *)&V,i); |
|
|
printf("scriptlen.%d u.(type.%d fpos.%d len.%d)\n",scriptlen,u->type,u->scriptpos,u->scriptlen); |
|
|
|
|
|
} |
|
|
} |
|
|
} else printf("iguana_voutset unexpected path\n"); |
|
|
} else printf("iguana_voutset unexpected path\n"); |
|
|
vout->pk_scriptlen = scriptlen; |
|
|
vout->pk_scriptlen = scriptlen; |
|
|
|
|
|
if ( scriptlen != u->scriptlen && u->scriptlen != 0 ) |
|
|
|
|
|
printf("scriptlen.%d u.(type.%d fpos.%d len.%d)\n",scriptlen,u->type,u->scriptpos,u->scriptlen); |
|
|
if ( err != 0 ) |
|
|
if ( err != 0 ) |
|
|
return(-err); |
|
|
return(-err); |
|
|
else return(scriptlen); |
|
|
else return(scriptlen); |
|
|