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

Don't actually need raw points

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