Presidential hopeful Bernie Sanders on Wednesday canceled all appearances and events until further notice after the 78-year-old senator underwent a procedure for an artery blockage.

In a statement Wednesday, the senator's advisor Jeff Weaver said Sanders "experienced some chest discomfort" during a Tuesday event. Testing found a "blockage in one artery," and Sanders had two stents inserted, he said. 

"Sen. Sanders is conversing and in good spirits. He will be resting up over the next few days," Weaver said. "We are canceling his events and appearances until further notice, and we will continue to provide appropriate updates."

Sanders is the oldest presidential candidate seeking to challenge President Donald Trump in 2020. The Vermont independent is three years older than former Vice President Joe Biden, who has led most national and state primary polls despite concerns about his mental sharpness. 

Democratic Presidential candidate Bernie Sanders speaks during a rally at the Boston Convention and Exhibition Center October 3, 2015 in Boston, Massachusetts.

Darren McCollester | Getty Images

Sanders is five years older than the 73-year-old Trump, who is the oldest person to be elected as a first-term president.

The senator had committed to releasing his medical records before the primary voting contests started. During his 2016 presidential campaign, Sanders released a letter from his doctor saying the senator was in good health and did not have a history of heart disease. 

The senator's Democratic primary competitors sent him messages of support after his campaign announced the procedure. In a tweet, Sen. Kamala Harris, D-Calif., wished Sanders a "speedy recovery." She called him a "fighter" and said she looked forward to "seeing him on the campaign trail soon." 

Sen. Cory Booker, D-N.J., also wished his rival a "speedy recovery." 

Sanders has run for president promising a drastic political and economic overhaul. He has proposed plans including implementing a single-payer "Medicare for All" health care system, canceling all student debt and taxing the wealthy at higher rates. 

Sanders is considered one of the top contenders for the Democratic presidential nomination. He has polled among the top three candidates in the vast majority of national and early state primary surveys. 

On Tuesday, his campaign said it raised $25.3 million in the third quarter, a haul that will allow him to stay competitive in the primary contest well into next year. 

— CNBC's Kevin Breuninger contributed to this report