From b08a0eada166b21424eb9a521429462a76cab484 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 30 Oct 2016 17:11:03 -0300 Subject: [PATCH] test --- iguana/dpow/dpow_network.c | 1 - iguana/dpow/dpow_rpc.c | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/iguana/dpow/dpow_network.c b/iguana/dpow/dpow_network.c index 5f328e3fa..9d2d851d9 100755 --- a/iguana/dpow/dpow_network.c +++ b/iguana/dpow/dpow_network.c @@ -393,7 +393,6 @@ void komodo_assetcoins() sprintf(confstr,"%s.conf",CURRENCIES[i]); sprintf(path,"%s/.komodo/%s",userhome,CURRENCIES[i]); extract_userpass(coin->chain->serverport,coin->chain->userpass,CURRENCIES[i],coin->chain->userhome,path,confstr); - printf("userpass.(%s)\n",coin->chain->userpass); } printf("(%s %u) ",CURRENCIES[i],port); } diff --git a/iguana/dpow/dpow_rpc.c b/iguana/dpow/dpow_rpc.c index 39f2bd6e5..86495512c 100755 --- a/iguana/dpow/dpow_rpc.c +++ b/iguana/dpow/dpow_rpc.c @@ -16,14 +16,14 @@ bits256 dpow_getbestblockhash(struct supernet_info *myinfo,struct iguana_info *coin) { char *retstr; bits256 blockhash; - if ( strcmp(coin->symbol,"USD") == 0 ) + if ( 0 && strcmp(coin->symbol,"USD") == 0 ) printf("dpow_getbestblockhash %s FULLNODE.%d\n",coin->symbol,coin->FULLNODE); memset(blockhash.bytes,0,sizeof(blockhash)); if ( coin->FULLNODE < 0 ) { if ( (retstr= bitcoind_passthru(coin->symbol,coin->chain->serverport,coin->chain->userpass,"getbestblockhash","")) != 0 ) { - if ( strcmp(coin->symbol,"USD") == 0 ) + if ( 0 && strcmp(coin->symbol,"USD") == 0 ) printf("%s getbestblockhash.(%s)\n",coin->symbol,retstr); if ( is_hexstr(retstr,0) == sizeof(blockhash)*2 ) decode_hex(blockhash.bytes,sizeof(blockhash),retstr); @@ -48,7 +48,7 @@ cJSON *dpow_getblock(struct supernet_info *myinfo,struct iguana_info *coin,bits2 { sprintf(buf,"\"%s\"",bits256_str(str,blockhash)); retstr = bitcoind_passthru(coin->symbol,coin->chain->serverport,coin->chain->userpass,"getblock",buf); - if ( strcmp(coin->symbol,"USD") == 0 ) + if ( 0 && strcmp(coin->symbol,"USD") == 0 ) printf("%s getblock.(%s)\n",coin->symbol,retstr); } else if ( coin->FULLNODE > 0 || coin->VALIDATENODE > 0 ) @@ -239,7 +239,7 @@ int32_t dpow_getchaintip(struct supernet_info *myinfo,bits256 *blockhashp,uint32 { for (i=0; isymbol,"USD") == 0 ) + if ( 0 && strcmp(coin->symbol,"USD") == 0 ) printf("dpow_getchaintip %s ht.%d time.%u numtx.%d\n",coin->symbol,height,*blocktimep,n); *numtxp = n; }