Browse Source

Test

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

8
iguana/exchanges/LP_transaction.c

@ -415,13 +415,8 @@ printf("bitcoin_verifyvins numvins.%d numvouts.%d\n",msgtx->tx_in,numvouts);
script = msgtx->vins[vini].spendscript; script = msgtx->vins[vini].spendscript;
scriptlen = msgtx->vins[vini].spendlen; scriptlen = msgtx->vins[vini].spendlen;
} }
//for (j=0; j<scriptlen; j++)
// printf("%02x",script[j]);
//printf(" scriptlen.%d\n",scriptlen);
printf("bitcoin_verifyvins scriptlen.%d siglen.%d\n",scriptlen,V[vini].signers[0].siglen);
spendamount = LP_outpoint_amount(symbol,msgtx->vins[vini].prev_hash,msgtx->vins[vini].prev_vout); spendamount = LP_outpoint_amount(symbol,msgtx->vins[vini].prev_hash,msgtx->vins[vini].prev_vout);
sigtxid = bitcoin_sigtxid(symbol,taddr,pubtype,p2shtype,isPoS,height,serialized,maxlen,msgtx,vini,script,scriptlen,spendamount,sighash,vpnstr,suppress_pubkeys,zcash); sigtxid = bitcoin_sigtxid(symbol,taddr,pubtype,p2shtype,isPoS,height,serialized,maxlen,msgtx,vini,script,scriptlen,spendamount,sighash,vpnstr,suppress_pubkeys,zcash);
//printf("bitcoin_verifyvins scriptlen.%d siglen.%d\n",scriptlen,V[vini].signers[0].siglen);
if ( bits256_nonz(sigtxid) != 0 ) if ( bits256_nonz(sigtxid) != 0 )
{ {
vp = &V[vini]; vp = &V[vini];
@ -474,7 +469,8 @@ printf("bitcoin_verifyvins scriptlen.%d siglen.%d\n",scriptlen,V[vini].signers[0
} }
if ( numsigs >= vp->M ) if ( numsigs >= vp->M )
complete = 1; complete = 1;
} } else if ( signtx != 0 )
printf("bitcoin_verifyvins cant without privkey\n");
} }
iguana_msgtx_Vset(serialized,maxlen,msgtx,V); iguana_msgtx_Vset(serialized,maxlen,msgtx,V);
cJSON *txobj = 0;//cJSON_CreateObject(); cJSON *txobj = 0;//cJSON_CreateObject();

Loading…
Cancel
Save