The electrodes apply RF energy or other forms of energy at a suitable power or frequency to shrink the vein and reduce the swelling and transmission of high portal venous pressure to the veins surrounding the esophagus while maintaining the function of the vein.