From 1edaae39bb51a9b98dc712c6771000f825648a0f Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 15 Apr 2016 16:50:12 -0500 Subject: [PATCH] test --- iguana/iguana_tx.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/iguana/iguana_tx.c b/iguana/iguana_tx.c index 29569d2df..a2a2bdf1b 100755 --- a/iguana/iguana_tx.c +++ b/iguana/iguana_tx.c @@ -75,7 +75,7 @@ int32_t iguana_voutset(struct iguana_info *coin,uint8_t *scriptspace,char *asmst p = &P[u->pkind]; vout->value = u->value; vout->pk_script = scriptspace; - if ( u->scriptpos != 0 && u->scriptlen > 0 ) + if ( u->scriptlen > 0 ) { iguana_voutsfname(coin,fname,u->fileid); 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)); 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"); 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 ) return(-err); else return(scriptlen);