Anaesthesia

A 23 years old male presents with ingrown nail. The ingrown nail was removed after administering a ring block. The mechanism of action of the local anesthetic used is