I like to join Solana mainnet as a validator and participate in consensus. As a result, I was reading about Solana and the steps to run a validator during the last few weeks.
I generally understood how Solana is working; however, I couldn't grasp how a new validator connects to the cluster and how this new validator gets the last state of the ledger. I am afraid to get the last state from a malicious validator.