virto-network / virto-node

Virto Network blockchain node.
GNU General Public License v3.0
21 stars 10 forks source link

Review VoteWeight type #404

Open olanod opened 3 months ago

olanod commented 3 months ago

The initial idea of VoteWeight being a u32 was to normalize votes in the u32 range, as we are currently just saturating_adding votes and blanaces are big numbers(u128) I assume the voting system will easily break. We should either try to normalize votes in the u32 range if possible as initially planned or grow the type to a u128 to allow communities with all kinds of tokenomics to count votes properly.