Add convenience function for getting chainHeight