fn verify_chain(chain: bool) -> Result<(), PlanError>