def branch(p, r):
    todo.append((state, votes, (votes + [{'node_pubkey': keyring[len(votes)], 'vote': {'previous_block': p, 'is_block_valid': r}}])))
def branch(p, r):
    todo.append((state, votes, (votes + [{'node_pubkey': keyring[len(votes)], 'vote': {'previous_block': p, 'is_block_valid': r}}])))