What is a “view” in the Paxos consensus algorithm?
问题 I have pasted pseudocode for a paxos algorithm below and was wondering if someone could point me in the right direction. I am trying to implement the algorithm below, but I'm a confused what exactly "views" represents below. I know the comment says it is a "map of past view numbers to values", but if someone could explain to me what exactly these "values" are and what "view numbers" are. state: num_h: highest proposal # seen in a prepare num_a, val_a: highest value and proposal # which node