From d783bbb4b1128c62dd9ff11ebe9bd6faeb0f4d24 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 30 Oct 2016 16:00:23 -0300 Subject: [PATCH] test --- iguana/dpow/dpow_rpc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/iguana/dpow/dpow_rpc.c b/iguana/dpow/dpow_rpc.c index 02f3cb5f5..26c535bf6 100755 --- a/iguana/dpow/dpow_rpc.c +++ b/iguana/dpow/dpow_rpc.c @@ -21,7 +21,8 @@ bits256 dpow_getbestblockhash(struct supernet_info *myinfo,struct iguana_info *c { if ( (retstr= bitcoind_passthru(coin->symbol,coin->chain->serverport,coin->chain->userpass,"getbestblockhash","")) != 0 ) { - //printf("%s getbestblockhash.(%s)\n",coin->symbol,retstr); + if ( 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); free(retstr); @@ -236,7 +237,8 @@ int32_t dpow_getchaintip(struct supernet_info *myinfo,bits256 *blockhashp,uint32 { for (i=0; isymbol,height,*blocktimep,n); + if ( strcmp(coin->symbol,"USD") == 0 ) + printf("dpow_getchaintip %s ht.%d time.%u numtx.%d\n",coin->symbol,height,*blocktimep,n); *numtxp = n; } } else height = -1;