|
|
@ -280,6 +280,10 @@ uint256 _komodo_getblockhash(int32_t nHeight) |
|
|
|
{ |
|
|
|
CBlockIndex* pblockindex = chainActive[nHeight]; |
|
|
|
hash = pblockindex->GetBlockHash(); |
|
|
|
int32_t i; |
|
|
|
for (i=0; i<32; i++) |
|
|
|
printf("%02x",((uint8_t *)&hash)[i]); |
|
|
|
printf(" blockhash.%d\n",nHeight); |
|
|
|
} else memset(&hash,0,sizeof(hash)); |
|
|
|
return(hash); |
|
|
|
} |
|
|
|