def init_election(self): # this function call is to start the election where this node # sends a message to all other processes to start an election # it also checks if election done message is received or there # is no reply from other nodes, and sets itself leader in that case. helpers.init_election(self)
def init_election(self): helpers.init_election(self)