Browse Source

Test

etomic
jl777 7 years ago
parent
commit
9a2e633b4e
  1. 2
      iguana/exchanges/LP_bitcoin.c
  2. 6
      iguana/exchanges/mm.c

2
iguana/exchanges/LP_bitcoin.c

@ -2210,7 +2210,7 @@ int32_t bitcoin_priv2wif(uint8_t wiftaddr,char *wifstr,bits256 privkey,uint8_t a
char str[65]; printf("error making wif from %s\n",bits256_str(str,privkey));
return(-1);
}
if ( 1 )
if ( 0 )
{
uint8_t checktype; bits256 checkpriv; char str[65],str2[65];
if ( bitcoin_wif2priv(wiftaddr,&checktype,&checkpriv,wifstr) == sizeof(bits256) )

6
iguana/exchanges/mm.c

@ -117,11 +117,11 @@ int main(int argc, const char * argv[])
for (i=0; i<1000000000; i++)
{
privkey = rand256(0);
bitcoin_priv2wif(0xab,wifstr,privkey,0x36);
if ( wifstr[3] == 'h' && wifstr[4] == 'u' && wifstr[5] == 's' )
bitcoin_priv2wif(0x36,wifstr,privkey,0xab);
if ( wifstr[4] == 'H' && wifstr[5] == 'u' && wifstr[6] == 's' )
{
printf("i.%d %s -> wif.%s\n",i,bits256_str(str,privkey),wifstr);
if ( wifstr[6] == 'h' )
if ( wifstr[7] == 'h' )
break;
} //else printf("failed %s\n",wifstr);
}

Loading…
Cancel
Save