Scorum
|
#include <vote_evaluator.hpp>
Public Types | |
using | operation_type = scorum::protocol::vote_operation |
Public Member Functions | |
vote_evaluator (data_service_factory_i &services) | |
void | do_apply (const operation_type &op) |
protocol::vote_weight_type | get_weigth (const operation_type &o) const |
![]() | |
evaluator_impl (data_service_factory_i &d) | |
virtual void | apply (const scorum::protocol::operation &o) final override |
data_service_factory_i & | db () const |
![]() | |
virtual | ~evaluator ()=default |
Definition at line 16 of file vote_evaluator.hpp.
Definition at line 19 of file vote_evaluator.hpp.
scorum::chain::vote_evaluator::vote_evaluator | ( | data_service_factory_i & | services | ) |
Definition at line 18 of file vote_evaluator.cpp.
void scorum::chain::vote_evaluator::do_apply | ( | const operation_type & | op | ) |
this is the rshares voting for or against the post
TODO: figure out how to handle remove a vote (rshares == 0 )
Definition at line 42 of file vote_evaluator.cpp.
vote_weight_type scorum::chain::vote_evaluator::get_weigth | ( | const operation_type & | o | ) | const |
Definition at line 28 of file vote_evaluator.cpp.