From 014b1b3dd71736861a4ed10e2d8f466f67230825 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 7 Feb 2018 11:07:45 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_etomic.c | 2 +- iguana/exchanges/LP_privkey.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/exchanges/LP_etomic.c b/iguana/exchanges/LP_etomic.c index 3d16b19eb..0451509bf 100644 --- a/iguana/exchanges/LP_etomic.c +++ b/iguana/exchanges/LP_etomic.c @@ -81,7 +81,7 @@ int32_t LP_etomic_priv2pub(uint8_t *pub64,bits256 privkey) printf("priv2pub got %s\n",pubstr); if ( strlen(pubstr) == 128 && pubstr[0] == '0' && pubstr[1] == 'x' ) { - decode_hex(pub33,64,pubstr+2); + decode_hex(pub64,64,pubstr+2); retval = 64; } free(pubstr); diff --git a/iguana/exchanges/LP_privkey.c b/iguana/exchanges/LP_privkey.c index eb1668f10..5dad47e56 100644 --- a/iguana/exchanges/LP_privkey.c +++ b/iguana/exchanges/LP_privkey.c @@ -301,7 +301,7 @@ bits256 LP_privkeycalc(void *ctx,uint8_t *pubkey33,bits256 *pubkeyp,struct iguan if ( memcmp(check64,coin->pubkey33+1,32) == 0 ) { printf("pubkey33 matches!\n"); - if ( LP_etomic_pub2addr(checkaddr,check33) > 0 ) + if ( LP_etomic_pub2addr(checkaddr,check64) > 0 ) printf("addr is (%s)\n",checkaddr); else printf("error getting addr\n"); } else printf("pubkey 64 mismatch\n");