Browse Source

Test

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

8
iguana/exchanges/LP_transaction.c

@ -666,7 +666,6 @@ char *iguana_validaterawtx(void *ctx,struct iguana_info *coin,struct iguana_msgt
V[i].amount = SATOSHIDEN * 0.00587427; V[i].amount = SATOSHIDEN * 0.00587427;
strcpy(V[i].coinaddr,"19MnNLzxNTNXWUdfxpQvWK3CPwFXJbmLb8"); strcpy(V[i].coinaddr,"19MnNLzxNTNXWUdfxpQvWK3CPwFXJbmLb8");
} }
printf("vin.%d (%s) scriptlen.%d\n",i,jprint(item,0),msgtx->vins[i].scriptlen);
V[i].suppress_pubkeys = suppress_pubkeys; V[i].suppress_pubkeys = suppress_pubkeys;
inputsum += V[i].amount; inputsum += V[i].amount;
msgtx->vins[i].spendscript = V[i].spendscript; msgtx->vins[i].spendscript = V[i].spendscript;
@ -687,14 +686,15 @@ char *iguana_validaterawtx(void *ctx,struct iguana_info *coin,struct iguana_msgt
// memcpy(V[i].signers[0].sig,msgtx->vins[i].vinscript+1,sigsize); // memcpy(V[i].signers[0].sig,msgtx->vins[i].vinscript+1,sigsize);
//printf("sigsize.%d hashtype.%d\n",sigsize,V[i].hashtype); //printf("sigsize.%d hashtype.%d\n",sigsize,V[i].hashtype);
//V[i].userdatalen = suffixlen; //V[i].userdatalen = suffixlen;
memcpy(V[i].spendscript,msgtx->vins[i].spendscript,msgtx->vins[i].spendlen); //memcpy(V[i].spendscript,msgtx->vins[i].spendscript,msgtx->vins[i].spendlen);
V[i].spendlen = msgtx->vins[i].spendlen; //V[i].spendlen = msgtx->vins[i].spendlen;
if ( msgtx->vins[i].sequence < IGUANA_SEQUENCEID_FINAL ) if ( msgtx->vins[i].sequence < IGUANA_SEQUENCEID_FINAL )
finalized = 0; finalized = 0;
if ( V[i].M == 0 ) if ( V[i].M == 0 )
V[i].M = 1; V[i].M = 1;
if ( V[i].N < V[i].M ) if ( V[i].N < V[i].M )
V[i].N = V[i].M; V[i].N = V[i].M;
printf("vin.%d (%s) scriptlen.%d spendlen.%d finalize.%d\n",i,jprint(item,0),msgtx->vins[i].scriptlen,V[i].spendlen,finalized);
printf("V %dof%d %.8f (%s) spendscript.[%d] scriptlen.%d siglen.%d hashtype.%d\n",V[i].M,V[i].N,dstr(V[i].amount),V[i].coinaddr,V[i].spendlen,V[i].spendlen,msgtx->vins[i].vinscript[0],V[i].hashtype); printf("V %dof%d %.8f (%s) spendscript.[%d] scriptlen.%d siglen.%d hashtype.%d\n",V[i].M,V[i].N,dstr(V[i].amount),V[i].coinaddr,V[i].spendlen,V[i].spendlen,msgtx->vins[i].vinscript[0],V[i].hashtype);
} }
complete = bitcoin_verifyvins(ctx,symbol,taddr,pubtype,p2shtype,isPoS,height,&signedtxid,&signedtx,msgtx,serialized2,maxsize,V,SIGHASH_ALL,1,V->suppress_pubkeys,LP_IS_BITCOINCASH); complete = bitcoin_verifyvins(ctx,symbol,taddr,pubtype,p2shtype,isPoS,height,&signedtxid,&signedtx,msgtx,serialized2,maxsize,V,SIGHASH_ALL,1,V->suppress_pubkeys,LP_IS_BITCOINCASH);

Loading…
Cancel
Save