Golos
Разработчикам Статистика Баунти Документация Партнеры Github
Public Types | Public Member Functions | List of all members
golos::chain::account_witness_proxy_evaluator< Major, Hardfork, Release > Class Template Reference

#include <witness_evaluator.hpp>

Inheritance diagram for golos::chain::account_witness_proxy_evaluator< Major, Hardfork, Release >:
golos::chain::evaluator< account_witness_proxy_evaluator< Major, Hardfork, Release >, Major, Hardfork, Release > golos::chain::generic_evaluator< golos::protocol::operation >

Public Types

typedef protocol::account_witness_proxy_operation< Major, Hardfork, Release > operation_type
 
- Public Types inherited from golos::chain::evaluator< account_witness_proxy_evaluator< Major, Hardfork, Release >, Major, Hardfork, Release >
typedef golos::protocol::operation operation_sv_type
 

Public Member Functions

 account_witness_proxy_evaluator (database &db)
 
void do_apply (const operation_type &o)
 
- Public Member Functions inherited from golos::chain::evaluator< account_witness_proxy_evaluator< Major, Hardfork, Release >, Major, Hardfork, Release >
 evaluator (database &d)
 
virtual void apply (const golos::protocol::operation &o) final override
 
virtual int get_type () const override
 
databaseget_database ()
 

Additional Inherited Members

- Protected Attributes inherited from golos::chain::evaluator< account_witness_proxy_evaluator< Major, Hardfork, Release >, Major, Hardfork, Release >
databasedb
 

Detailed Description

template<uint8_t Major, uint8_t Hardfork, uint16_t Release>
class golos::chain::account_witness_proxy_evaluator< Major, Hardfork, Release >

Definition at line 36 of file witness_evaluator.hpp.

Member Typedef Documentation

◆ operation_type

template<uint8_t Major, uint8_t Hardfork, uint16_t Release>
typedef protocol::account_witness_proxy_operation<Major, Hardfork, Release> golos::chain::account_witness_proxy_evaluator< Major, Hardfork, Release >::operation_type

Definition at line 39 of file witness_evaluator.hpp.

Constructor & Destructor Documentation

◆ account_witness_proxy_evaluator()

template<uint8_t Major, uint8_t Hardfork, uint16_t Release>
golos::chain::account_witness_proxy_evaluator< Major, Hardfork, Release >::account_witness_proxy_evaluator ( database db)
inline

Definition at line 41 of file witness_evaluator.hpp.

Member Function Documentation

◆ do_apply()

template<uint8_t Major, uint8_t Hardfork, uint16_t Release>
void golos::chain::account_witness_proxy_evaluator< Major, Hardfork, Release >::do_apply ( const operation_type o)

remove all current votes

check for proxy loops and fail to update the proxy if it would create a loop

clear all individual vote records

add all new votes

we are clearing the proxy which means we simply update the account

Definition at line 53 of file witness_evaluator.cpp.


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