Leader

data object Leader : RaftRole

This node won a quorum vote and is currently the elected leader.

The leader is the only node that accepts RaftNode.propose calls. It sends heartbeats and replicates log entries to all other cluster members.