Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
b95c191491
  1. 4
      iguana/iguana_ramchain.c
  2. 1
      iguana/iguana_recv.c

4
iguana/iguana_ramchain.c

@ -1957,7 +1957,6 @@ int32_t iguana_ramchain_scriptspace(struct iguana_info *coin,int32_t *sigspacep,
if ( (scriptdata= iguana_scriptptr(coin,&scriptlen,_script,S[spendind].scriptfpos,S[spendind].vinscript,S[spendind].vinscriptlen,sizeof(S[spendind].vinscript),1)) != 0 )
{
iguana_vinscriptparse(coin,&V,&sigsize,&pubkeysize,&p2shsize,&suffixlen,scriptdata,scriptlen);
scriptspace += tx->numvins * 16; // for metascripts
p2shspace += p2shsize;
if ( sequence != 0 && sequence != 0xffffffff && sequence != 0xfffffffe )
scriptspace += sizeof(sequence);
@ -1966,9 +1965,10 @@ int32_t iguana_ramchain_scriptspace(struct iguana_info *coin,int32_t *sigspacep,
}
}
}
scriptspace += tx->numvins * 16; // for metascripts
}
*sigspacep = sigspace, *pubkeyspacep = pubkeyspace;
printf("scriptspace.%d p2shspace.%d sigspace.%d pubkeyspace.%d\n",scriptspace,p2shspace,sigspace,pubkeyspace);
printf("numvouts.%d numvins.%d scriptspace.%d p2shspace.%d sigspace.%d pubkeyspace.%d\n",tx->numvouts,tx->numvins,scriptspace,p2shspace,sigspace,pubkeyspace);
return(scriptspace + p2shspace);
}

1
iguana/iguana_recv.c

@ -675,7 +675,6 @@ int32_t iguana_processbundlesQ(struct iguana_info *coin,int32_t *newhwmp) // sin
}
else printf("iguana_updatebundles unknown type.%c\n",req->type);
flag++;
fprintf(stderr,"done %s bundlesQ.%p type.%c n.%d\n",req->addr != 0 ? req->addr->ipaddr : "0",req,req->type,req->n);
if ( req != 0 )
myfree(req,req->allocsize), req = 0;
}

Loading…
Cancel
Save