one off fix; complete tree

This commit is contained in:
0xFugue 2023-12-13 16:33:52 +05:30
parent 0471251edf
commit 35612738b2
1 changed files with 2 additions and 1 deletions

View File

@ -113,7 +113,8 @@ def compute_view_times(path, oprefix, otype):
continue continue
if simtype == "tree": if simtype == "tree":
num_nodes = conf["node_count"] num_nodes = conf["node_count"]
max_depth = math.ceil(math.log(conf["overlay_settings"]["number_of_committees"], 2)) #ceil((lg(N+1) - 1))
max_depth = math.ceil(math.log(conf["overlay_settings"]["number_of_committees"]+1, 2)-1)
else: else:
num_tree_nodes = 2 ** (conf["overlay_settings"]["branch_depth"]) - 1 num_tree_nodes = 2 ** (conf["overlay_settings"]["branch_depth"]) - 1
num_committees = int (conf["node_count"]/conf["overlay_settings"]["branch_depth"]) num_committees = int (conf["node_count"]/conf["overlay_settings"]["branch_depth"])