updated to get block longhash