While a public servant or peace officer, soliciting, accepting, or agreeing to accept any benefit upon an agreement or understanding that he will violate his public duty or oath of office by changing or amending his vote, opinion, judgment, exercise of discretion, or other action or inaction as a public servant or peace officer.