Skip to content
Snippets Groups Projects
Commit 742e54a9 authored by Jonah Husson's avatar Jonah Husson
Browse files

Node multiplier should be average of theirs & max for round

parent 019d40cf
No related branches found
No related tags found
1 merge request!2Node multiplier should be average of theirs & max for round
......@@ -205,12 +205,13 @@ def round_point_computation(point_info, round_info, active_nodes):
# NOTE: Weirdness can result here from nodes going offline between eras. Should be reviewed.
multipliers = [node_multipliers[bytes(node_id)] for node_id in topology
if node_multipliers.get(bytes(node_id))]
multiplier = max(multipliers)
points = success_points * multiplier
raw_points = success_points
max_multiplier = max(multipliers)
# Assign points to wallets
for node_id in topology:
node_mult = (max_multiplier + node_multipliers[bytes(node_id)]) / 2
points = success_points * node_mult
raw_points = success_points
# NOTE: Weirdness can result here from nodes going offline between eras. Should be reviewed.
wallet = node_wallets.get(bytes(node_id))
if wallet:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment