You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (current_dynasty_votes>=self.total_curdyn_deposits*2/3and
), which means current_dynasty_votes is the value before the proc_reward but total_curdyn_deposits is the value after proc_reward. This seems unintentional. Both should comparison should likely happen between the two values prior to the reward inclusion or after the reward inclusion. Not with one of the values before and one after.
@karlfloersch I wanted to make sure this is a bug and not an intentional feature before I move forward with changing it.
The text was updated successfully, but these errors were encountered:
@yzhang90 noticed that comparing
current_dynasty_votes
andtotal_curdyn_deposits
happens afterproc_reward
(casper/casper/contracts/simple_casper.v.py
Line 447 in d5aed93
current_dynasty_votes
is the value before theproc_reward
buttotal_curdyn_deposits
is the value afterproc_reward
. This seems unintentional. Both should comparison should likely happen between the two values prior to the reward inclusion or after the reward inclusion. Not with one of the values before and one after.@karlfloersch I wanted to make sure this is a bug and not an intentional feature before I move forward with changing it.
The text was updated successfully, but these errors were encountered: