Bitcoin has hit its highest level in more than two years due to a change in the cryptocurrency's code which could tighten its supply.