From d84e42fcf21280d284d9eac91c61c0f65826a9ab Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 1 Jan 2018 11:14:15 +0700 Subject: [PATCH] Test --- iguana/exchanges/mm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/exchanges/mm.c b/iguana/exchanges/mm.c index 5ec1d25bf..a7c7b3bdf 100644 --- a/iguana/exchanges/mm.c +++ b/iguana/exchanges/mm.c @@ -152,11 +152,11 @@ int main(int argc, const char * argv[]) { OS_randombytes(privkey.bytes,sizeof(privkey)); bitcoin_priv2pub(ctx,pubkey33,coinaddr,privkey,0,60); - if ( strncmp(coinaddr+4,argv[2],len-1) == 0 ) + if ( strncmp(coinaddr+2,argv[2],len-1) == 0 ) { bitcoin_priv2wif(0,wifstr,privkey,188); printf("i.%d %s -> %s wif.%s\n",i,bits256_str(str,privkey),coinaddr,wifstr); - if ( coinaddr[4+len-1] == argv[2][len-1] ) + if ( coinaddr[2+len-1] == argv[2][len-1] ) break; } //else printf("failed %s\n",wifstr); }