Browse Source

Test

etomic
jl777 8 years ago
parent
commit
dde9769590
  1. 2
      iguana/iguana_interpreter.c
  2. 4
      iguana/iguana_sign.c

2
iguana/iguana_interpreter.c

@ -734,7 +734,7 @@ int32_t iguana_checksig(struct iguana_info *coin,struct iguana_stackdata pubkeya
if ( (retval= (bitcoin_verify(coin->ctx,sig,siglen-1,sigtxid,pubkey,plen) == 0)) == 0 ) if ( (retval= (bitcoin_verify(coin->ctx,sig,siglen-1,sigtxid,pubkey,plen) == 0)) == 0 )
{ {
} }
if ( (0) ) if ( (1) )
{ {
int32_t i; char str[65]; int32_t i; char str[65];
for (i=0; i<siglen; i++) for (i=0; i<siglen; i++)

4
iguana/iguana_sign.c

@ -1034,13 +1034,13 @@ int32_t bitcoin_verifyvins(struct iguana_info *coin,int32_t height,bits256 *sign
{ {
flag++; flag++;
numsigs++; numsigs++;
/*int32_t z; int32_t z;
for (z=0; z<siglen-1; z++) for (z=0; z<siglen-1; z++)
printf("%02x",sig[z]); printf("%02x",sig[z]);
printf(" <- sig[%d]\n",j); printf(" <- sig[%d]\n",j);
for (z=0; z<33; z++) for (z=0; z<33; z++)
printf("%02x",vp->signers[j].pubkey[z]); printf("%02x",vp->signers[j].pubkey[z]);
printf(" <- pub, SIG.%d.%d VERIFIED numsigs.%d vs M.%d\n",vini,j,numsigs,vp->M);*/ printf(" <- pub, SIG.%d.%d VERIFIED numsigs.%d vs M.%d\n",vini,j,numsigs,vp->M);
} }
} }
if ( numsigs >= vp->M ) if ( numsigs >= vp->M )

Loading…
Cancel
Save