BitShares Forum

Main => Technical Support => Topic started by: monsterer on September 14, 2015, 10:09:21 am

Title: Voting in bitshares
Post by: monsterer on September 14, 2015, 10:09:21 am
How long does stake need to bond before it can vote?

How often are votes tallied?

edit: the core of my question is to establish how bitshares voting avoids sybil attack by moving stake around
Title: Re: Voting in bitshares
Post by: xeroc on September 14, 2015, 10:26:16 am
How long does stake need to bond before it can vote?
No waiting period. You can vote instantly.

Quote
How often are votes tallied?
In BitShares1 every block. That's why blocks are appart 10 secs. In BitShares
2.0 the votes are reindexed every maintenance interval (a parameter defined by
shareholders with initially 24h)
Title: Re: Voting in bitshares
Post by: monsterer on September 14, 2015, 10:34:02 am
...and the thing which prevents sybil attack by moving stake around is the fact that (in 1.0) the transfer out also removes votes?

If you submit a transaction with the votes removed, what happens?
Title: Re: Voting in bitshares
Post by: xeroc on September 14, 2015, 11:11:47 am
Ever BTS has a vote .. and you cast your vote by movimg your stake .. your vote may also be empty .. transfers to a 3rd party are the same as transfers to yourself .. they carry a vote
Title: Re: Voting in bitshares
Post by: monsterer on September 14, 2015, 11:15:38 am
Ever BTS has a vote .. and you cast your vote by movimg your stake .. your vote may also be empty .. transfers to a 3rd party are the same as transfers to yourself .. they carry a vote

Are the votes implicit, then?... because when you look at a transaction json, they look explicit, but it could of course be metadata.
Title: Re: Voting in bitshares
Post by: xeroc on September 14, 2015, 11:16:45 am
Ever BTS has a vote .. and you cast your vote by movimg your stake .. your vote may also be empty .. transfers to a 3rd party are the same as transfers to yourself .. they carry a vote
Are the votes implicit, then?
Not sure what you mean by "implicit" ..
if you receive funds from someone, they may carry a vote that is NOT yours ..
Title: Re: Voting in bitshares
Post by: monsterer on September 14, 2015, 12:07:37 pm
Not sure what you mean by "implicit" ..
if you receive funds from someone, they may carry a vote that is NOT yours ..

An implicit vote would be one which was calculated directly from your transaction, even if the transaction had the delegates you were voting for removed from it (should it even contain them in the first place).
Title: Re: Voting in bitshares
Post by: xeroc on September 14, 2015, 01:51:05 pm
An implicit vote would be one which was calculated directly from your transaction, even if the transaction had the delegates you were voting for removed from it (should it even contain them in the first place).
I don't get it, sorry.

The voting is part of the transaction and removing a subset of delegates from your transactions invalidates the transaction's signature.
You also need to distinguish brutto and net votes .. if you have a balanceID that voted for delegateA and delegateB .. withdraw funds from that address in a newer transaction that only votes for delegateA, then all your votes will end up in delegateA while delegateB will have a net negative vote in the sice of the amounts in the balanceID