From 8f959696d4d74970e79459feef5ecf168681bd27 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 12 Dec 2017 03:00:16 +0400 Subject: [PATCH] Test --- iguana/exchanges/LP_transaction.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/iguana/exchanges/LP_transaction.c b/iguana/exchanges/LP_transaction.c index 13f1d562c..ed0cc5922 100644 --- a/iguana/exchanges/LP_transaction.c +++ b/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; scriptlen = msgtx->vins[vini].spendlen; } - //for (j=0; jvins[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); - //printf("bitcoin_verifyvins scriptlen.%d siglen.%d\n",scriptlen,V[vini].signers[0].siglen); if ( bits256_nonz(sigtxid) != 0 ) { vp = &V[vini]; @@ -474,7 +469,8 @@ printf("bitcoin_verifyvins scriptlen.%d siglen.%d\n",scriptlen,V[vini].signers[0 } if ( numsigs >= vp->M ) complete = 1; - } + } else if ( signtx != 0 ) + printf("bitcoin_verifyvins cant without privkey\n"); } iguana_msgtx_Vset(serialized,maxlen,msgtx,V); cJSON *txobj = 0;//cJSON_CreateObject();