Submitted by ladboy233
In the current implementation, when voting, the function _countVote is triggered, this function is overridden in the function GovernorCountingOverridable.sol
This is calling:
The logic to determine if an account is the transcoder is too simple in this line of code:
And does not match the logic that determine if the address is an registered transcorder and an active transcoder in the bondManager.sol.
In BondManager.sol, the function that used to check if a transcoder is registered is in this line of code:
The function that is used to check if a transcoder is active is in this line of code.
Missing the check in the delegators bond amount (delegators[_transcoder].bondeAmount > 0).
The code incorrectedly counts regular delegator as transcoder and does not update the deduction power correctly.
Reuse the function isRegisteredTranscoder and isActiveTranscoder to determine if an account is a registered and active transcoder when counting the voting power.
Governance
victorges (Livepeer) confirmed and commented:
victorges (Livepeer) mitigated:
