Browse Source

Test

etomic
jl777 7 years ago
parent
commit
51831462c6
  1. 8
      iguana/exchanges/LP_transaction.c

8
iguana/exchanges/LP_transaction.c

@ -701,12 +701,12 @@ char *iguana_validaterawtx(void *ctx,struct iguana_info *coin,struct iguana_msgt
msgtx->vins[i].scriptlen = slen;
msgtx->vins[i].vinscript = scriptbuf;
decode_hex(scriptbuf,slen,scriptsig);
printf("slen.%d siglen.%d\n",slen,scriptbuf[1]);
if ( (sigsize= scriptbuf[1]) >= 70 && sigsize < 76 )
printf("slen.%d siglen.%d\n",slen,scriptbuf[0]);
if ( (sigsize= scriptbuf[0]) >= 70 && sigsize < 76 )
{
memcpy(V[i].signers[0].sig,scriptbuf+2,sigsize-1);
memcpy(V[i].signers[0].sig,scriptbuf+1,sigsize-1);
V[i].signers[0].siglen = sigsize - 1;
V[i].hashtype = scriptbuf[2 + sigsize-1];
V[i].hashtype = scriptbuf[1 + sigsize-1];
if ( scriptbuf[sigsize] == 33 )
{
memcpy(V[i].signers[0].pubkey,&scriptbuf[sigsize+2],33);

Loading…
Cancel
Save