From daee179a4e01efd7024a2a7f9603f57d47bc72d1 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 1 Jun 2017 21:52:46 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_bitcoin.c | 46 +++++++++++++++++------------------ 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/iguana/exchanges/LP_bitcoin.c b/iguana/exchanges/LP_bitcoin.c index 7b403117d..c7c5fe8fa 100644 --- a/iguana/exchanges/LP_bitcoin.c +++ b/iguana/exchanges/LP_bitcoin.c @@ -1321,29 +1321,29 @@ int32_t bitcoin_assembler(void *ctx,cJSON *logarray,uint8_t script[IGUANA_MAXSCR iguana_pushdata(stacks,0,rmd160,sizeof(rmd160)); break; case IGUANA_OP_HASH160: - /*if ( datalen == 32 ) - { - revcalc_rmd160_sha256(rmd160,*(bits256 *)databuf); - printf("SPECIAL CASE REVERSE\n"); - } else - for (i=0; i<32; i++) - printf("%02x",databuf[i]); - printf(" <- databuf\n"); - for (i=0; i<32; i++) - printf("%02x",revdatabuf[i]); - printf(" <- revdatabuf\n"); - calc_rmd160_sha256(rmd160,revdatabuf,datalen); - for (i=0; i<20; i++) - printf("%02x",rmd160[i]); - printf(" <- rmd160 revdatabuf\n"); - revcalc_rmd160_sha256(rmd160,*(bits256 *)databuf); - for (i=0; i<20; i++) - printf("%02x",rmd160[i]); - printf(" <- rmd160 special\n"); - calc_rmd160_sha256(rmd160,databuf,datalen); - for (i=0; i<20; i++) - printf("%02x",rmd160[i]); - printf(" <- rmd160 databuf\n");*/ + if ( datalen == 32 ) + { + revcalc_rmd160_sha256(rmd160,*(bits256 *)databuf); + printf("SPECIAL CASE REVERSE\n"); + } else + for (i=0; i<32; i++) + printf("%02x",databuf[i]); + printf(" <- databuf\n"); + for (i=0; i<32; i++) + printf("%02x",revdatabuf[i]); + printf(" <- revdatabuf\n"); + calc_rmd160_sha256(rmd160,revdatabuf,datalen); + for (i=0; i<20; i++) + printf("%02x",rmd160[i]); + printf(" <- rmd160 revdatabuf\n"); + revcalc_rmd160_sha256(rmd160,*(bits256 *)databuf); + for (i=0; i<20; i++) + printf("%02x",rmd160[i]); + printf(" <- rmd160 special\n"); + calc_rmd160_sha256(rmd160,databuf,datalen); + for (i=0; i<20; i++) + printf("%02x",rmd160[i]); + printf(" <- rmd160 databuf\n"); if ( datalen == 32 ) calc_rmd160_sha256(rmd160,revdatabuf,datalen); else calc_rmd160_sha256(rmd160,databuf,datalen);