Golos
Разработчикам Статистика Баунти Документация Партнеры Github
Public Member Functions | Public Attributes | List of all members
golos::chain::comment_vote_object Class Reference

#include <comment_object.hpp>

Inheritance diagram for golos::chain::comment_vote_object:

Public Member Functions

template<typename Constructor , typename Allocator >
 comment_vote_object (Constructor &&c, allocator< Allocator > a)
 

Public Attributes

id_type id
 
account_object::id_type voter
 
comment_object::id_type comment
 
uint64_t weight = 0
 defines the score this vote receives, used by vote payout calc. 0 if a negative vote or changed votes. More...
 
int64_t rshares = 0
 The number of rshares this vote is responsible for. More...
 
int16_t vote_percent = 0
 The percent weight of the vote. More...
 
time_point_sec last_update
 The time of the last update of the vote. More...
 
int8_t num_changes = 0
 

Detailed Description

This index maintains the set of voter/comment pairs that have been used, voters cannot vote on the same comment more than once per payout period.

Definition at line 178 of file comment_object.hpp.

Constructor & Destructor Documentation

◆ comment_vote_object()

template<typename Constructor , typename Allocator >
golos::chain::comment_vote_object::comment_vote_object ( Constructor &&  c,
allocator< Allocator >  a 
)
inline

Definition at line 182 of file comment_object.hpp.

Member Data Documentation

◆ comment

comment_object::id_type golos::chain::comment_vote_object::comment

Definition at line 189 of file comment_object.hpp.

◆ id

id_type golos::chain::comment_vote_object::id

Definition at line 186 of file comment_object.hpp.

◆ last_update

time_point_sec golos::chain::comment_vote_object::last_update

The time of the last update of the vote.

Definition at line 193 of file comment_object.hpp.

◆ num_changes

int8_t golos::chain::comment_vote_object::num_changes = 0

Definition at line 194 of file comment_object.hpp.

◆ rshares

int64_t golos::chain::comment_vote_object::rshares = 0

The number of rshares this vote is responsible for.

Definition at line 191 of file comment_object.hpp.

◆ vote_percent

int16_t golos::chain::comment_vote_object::vote_percent = 0

The percent weight of the vote.

Definition at line 192 of file comment_object.hpp.

◆ voter

account_object::id_type golos::chain::comment_vote_object::voter

Definition at line 188 of file comment_object.hpp.

◆ weight

uint64_t golos::chain::comment_vote_object::weight = 0

defines the score this vote receives, used by vote payout calc. 0 if a negative vote or changed votes.

Definition at line 190 of file comment_object.hpp.


The documentation for this class was generated from the following file: