• Iustin Pop's avatar
    Add function to compute the master candidates · ec0292f1
    Iustin Pop authored
    Since some nodes can be offline, we can't just take the length of the
    node list as the maximum possible number of master candidates.
    
    The patch adds an utility function to correctly compute this value and
    replaces hardcoded computations with the use of this function. It then
    adds utility functions to automate the maintenance of the node lists.
    
    Reviewed-by: ultrotter
    ec0292f1
config.py 33.6 KB