rchain-community / rgov

RChain liquid democracy demo: capability sharing, mailbox, directory, chat, ...
https://rchain-community.github.io/rgov/
10 stars 14 forks source link

last vote counts chain delegation #1

Closed dckc closed 3 years ago

dckc commented 4 years ago

having explicit code for delegation is sorta silly; we get it for free in rholang.

https://github.com/rchain-community/community/blob/54779fd10ce3ea4e3ee32afeb85ec47b61a962f5/Ballot.rho#L130

jimscarver commented 4 years ago

If the person votes their vote counts but if they do not the delegates vote counts for them. At some point here should be a way to see who the delegate is and what their vote is.

dckc commented 4 years ago

Ok... a vote that only counts if some other vote is not cast is novel.

I wonder if the code works that way currently. I suspect the current code does last-vote-counts.

jimscarver commented 4 years ago

last vote counts but the chain of delegates is followed until there is a non nil vote when a tally is done.

Bill-Kunj commented 3 years ago

@dckc @jimscarver Am I correct that the demo of liquid democracy answers this and the issue should be closed?

dckc commented 3 years ago

yes.