|
|
@ -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; i<n&&i<maxtx; i++) |
|
|
|
txs[i] = jbits256i(array,i); |
|
|
|
//printf("dpow_getchaintip %s ht.%d time.%u numtx.%d\n",coin->symbol,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; |
|
|
|