Browse Source

Test

etomic
jl777 8 years ago
parent
commit
3a0ad358cc
  1. 6
      iguana/iguana_sign.c

6
iguana/iguana_sign.c

@ -1462,12 +1462,6 @@ int32_t iguana_signrawtransaction(struct supernet_info *myinfo,struct iguana_inf
flag = (msgtx->vins[i].vinscript[0] == 0);
type = bitcoin_scriptget(coin,&hashtype,&sigsize,&pubkeysize,&userdata,&userdatalen,&mainvin,msgtx->vins[i].vinscript+flag,msgtx->vins[i].scriptlen-flag,0);
printf("i.%d flag.%d type.%d scriptlen.%d\n",i,flag,type,msgtx->vins[i].scriptlen);
if ( flag != 0 && pubkeysize == 33 ) // jl777: need to generalize this
{
for (k=0; k<sigsize; k++)
printf("%02x",mainvin.signers[0].sig[k]);
}
printf(" main vinscript type.%d sigsize.%d pubkeysize.%d\n",type,sigsize,pubkeysize);
if ( msgtx->vins[i].redeemscript != 0 )
{
//for (j=0; j<msgtx->vins[i].p2shlen; j++)

Loading…
Cancel
Save