Browse Source

Test

etomic
jl777 7 years ago
parent
commit
d7a5da05ae
  1. 2
      iguana/exchanges/LP_bitcoin.c
  2. 2
      iguana/exchanges/LP_privkey.c

2
iguana/exchanges/LP_bitcoin.c

@ -2130,7 +2130,7 @@ char *bitcoin_address(char *symbol,char *coinaddr,uint8_t taddr,uint8_t addrtype
if ( ctx == 0 )
ctx = bitcoin_ctx();
bitcoin_expandcompressed(ctx,bigpubkey,pubkey_or_rmd160);
LP_etomic_pub2addr(coinaddr+2,bigpubkey+1);
LP_etomic_pub2addr(coinaddr,bigpubkey+1);
/*for (i=0; i<33; i++)
printf("%02x",pubkey_or_rmd160[i]);
printf(" compressed -> ");

2
iguana/exchanges/LP_privkey.c

@ -318,7 +318,7 @@ bits256 LP_privkeycalc(void *ctx,uint8_t *pubkey33,bits256 *pubkeyp,struct iguan
} else printf("pubkey 64 mismatch\n");
} else printf("error creating pubkey\n");
}
if ( coin->counter == 0 )
if ( coin->counter == 0 && coin->etomic[0] == 0 )
{
coin->counter++;
memcpy(G.LP_pubsecp,coin->pubkey33,33);

Loading…
Cancel
Save