bully-highest-id-wins

Status: IN

The Bully Algorithm always elects the highest available node ID as leader; `start_election` only sends ELECTION to higher-ID nodes, and `declare_victory` only fires when no higher node responds.

Source: entries/2026/05/29/leader-election-leader_election.md

Example

higher_nodes = [nid for nid in self.all_node_ids if nid > self.node_id]
if not higher_nodes:
    return self.declare_victory(current_time)

JSON