Both self righteousness and self punishment/unworthiness are limiting beliefs that are programmed in our minds. These are the blockers to our ability to create success and happiness now because they keep nagging at our minds unconsciously sabotaging our efforts to create success.
http://www.filmsforaction.org/articles/the-trap-of-righteousness/