if a node joins an existing cluster and becomes leader due to its address, wouldn’t this code be wrong?