Cosmos Code to Ensure Continuity of Height

And will panic if such assumption is failed:

image