Browse Source

Test

etomic
jl777 8 years ago
parent
commit
df4374fc28
  1. 1
      iguana/exchanges/LP_bitcoin.c
  2. 2
      iguana/exchanges/LP_transaction.c

1
iguana/exchanges/LP_bitcoin.c

@ -792,7 +792,6 @@ int32_t iguana_checksig(void *ctx,struct iguana_stackdata pubkeyarg,struct iguan
uint8_t pubkey[MAX_SCRIPT_ELEMENT_SIZE],sig[MAX_SCRIPT_ELEMENT_SIZE]; int32_t retval,plen,siglen; uint8_t pubkey[MAX_SCRIPT_ELEMENT_SIZE],sig[MAX_SCRIPT_ELEMENT_SIZE]; int32_t retval,plen,siglen;
plen = iguana_databuf(pubkey,pubkeyarg); plen = iguana_databuf(pubkey,pubkeyarg);
siglen = iguana_databuf(sig,sigarg); siglen = iguana_databuf(sig,sigarg);
printf("checksig\n");
if ( bitcoin_pubkeylen(pubkey) == plen && plen > 0 && siglen > 0 && siglen < 74 ) if ( bitcoin_pubkeylen(pubkey) == plen && plen > 0 && siglen > 0 && siglen < 74 )
{ {
if ( (retval= (bitcoin_verify(ctx,sig,siglen-1,sigtxid,pubkey,plen) == 0)) == 0 ) if ( (retval= (bitcoin_verify(ctx,sig,siglen-1,sigtxid,pubkey,plen) == 0)) == 0 )

2
iguana/exchanges/LP_transaction.c

@ -379,7 +379,7 @@ int32_t bitcoin_verifyvins(void *ctx,char *symbol,uint8_t pubtype,uint8_t p2shty
{ {
script = V->p2shscript; script = V->p2shscript;
scriptlen = V->p2shlen; scriptlen = V->p2shlen;
//printf("V->p2shlen.%d\n",V->p2shlen); printf("V->p2shlen.%d\n",V->p2shlen);
} }
else else
{ {

Loading…
Cancel
Save