Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
3f353f15c4
  1. 2
      basilisk/basilisk_bitcoin.c

2
basilisk/basilisk_bitcoin.c

@ -114,8 +114,10 @@ bits256 basilisk_blockhash(struct iguana_info *coin,bits256 prevhash2)
memset(hash2.bytes,0,sizeof(hash2)); memset(hash2.bytes,0,sizeof(hash2));
if ( (height= basilisk_blockheight(coin,prevhash2)) >= 0 ) if ( (height= basilisk_blockheight(coin,prevhash2)) >= 0 )
{ {
printf("blockhash.%d\n",height);
if ( (blockhashstr= bitcoin_blockhashstr(coin->symbol,coin->chain->serverport,coin->chain->userpass,height+1)) != 0 ) if ( (blockhashstr= bitcoin_blockhashstr(coin->symbol,coin->chain->serverport,coin->chain->userpass,height+1)) != 0 )
{ {
printf("got (%s)\n",blockhashstr);
hash2 = bits256_conv(blockhashstr); hash2 = bits256_conv(blockhashstr);
free(blockhashstr); free(blockhashstr);
} }

Loading…
Cancel
Save