“…Regarding the research on corrosion protection of metal pipelines, corrosion problems, such as uniform corrosion, pitting corrosion, stray current corrosion and microbial-influenced corrosion (MIC), in pipelines have been widely studied [5,6]. Different from the corrosion research of pipeline steel, most of the corrosion research on magnesium alloy materials focuses on the corrosion of different alloys in different solutions [7], atmospheric corrosion [8] and anti-corrosion coating [9].However, little attention has been paid to the corrosion of magnesium anodes used to protect pipes. Due to their inherent low corrosion resistance [10], magnesium anodes often fail abnormally due to unstable discharge before Lubricants 2022, 10, 293 2 of 15 reaching the expected service life.…”