hackfisher / bitshares_snapshot

Libraries and Utilities for building DACs
The Unlicense
0 stars 1 forks source link

Why votes are accumulated in detail validation? #24

Open hackfisher opened 10 years ago

hackfisher commented 10 years ago

accumulate_votes( in.output.amount.get_rounded_amount(), in.source.block_num, state ); block_state->add_input_delegate_votes( in.delegate_id, in.output.amount ); block_state->add_output_delegate_votes

hackfisher commented 10 years ago

add_input_delegate_votes for jackpot_input are removed, because its input are jackpot output which vote is 0. err when update delegate...

https://github.com/HackFisher/bitshares_toolkit/blob/lotto_experi/libraries/lotto/lotto_transaction_validator.cpp#L197

hackfisher commented 10 years ago

Changed the trx's vote default to the ticket input's vote.

hackfisher commented 10 years ago

Can disable the votes by set _stake to 0?