From 2223d2fcc49d173084e695bf83995e25b6852970 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 23 Nov 2017 11:50:10 +0400 Subject: [PATCH] Test --- iguana/exchanges/mm.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/iguana/exchanges/mm.c b/iguana/exchanges/mm.c index 46d64c15b..f4d147131 100644 --- a/iguana/exchanges/mm.c +++ b/iguana/exchanges/mm.c @@ -883,13 +883,14 @@ int main(int argc, const char * argv[]) OS_init(); if ( strstr(argv[0],"btc2kmd") != 0 && argv[1] != 0 ) { - uint8_t addrtype,rmd160[20],rmd160b[20]; char coinaddr[64],coinaddr2[64],coinaddr3[64]; + uint8_t addrtype,rmd160[20],rmd160b[20]; char coinaddr[64],coinaddr2[64]; bitcoin_addr2rmd160(0,&addrtype,rmd160,(char *)argv[1]); bitcoin_address(coinaddr,0,60,rmd160,20); - bitcoin_address(coinaddr2,0,0,rmd160,20); bitcoin_addr2rmd160(0,&addrtype,rmd160b,coinaddr); - bitcoin_address(coinaddr3,0,0,rmd160b,20); - printf("%s %s %s\n",coinaddr,coinaddr2,coinaddr3); + bitcoin_address(coinaddr2,0,0,rmd160b,20); + printf("(%s) -> %s -> %s\n",(char *)argv[1],coinaddr,coinaddr2); + if ( strcmp((char *)argv[1],coinaddr2) != 0 ) + printf("ERROR\n"); exit(0); } sprintf(dirname,"%s",GLOBAL_DBDIR), OS_ensure_directory(dirname);