Consensus messages buffer size

Hello,

I am looking for the code where we can see how validators store consensus messages: how many messages can/need validators to store? Could you please help me with a pointer?

Thank you,
Lacramioara

PS
I note that the paper https://arxiv.org/abs/1807.04938 does not discuss this aspect, hence my curiosity of how is it done in the implementation itself.

See the HeightVoteSet which nodes use to store all votes they’ve seen at all rounds for the current height.