Scorum
|
#include <witness.hpp>
Public Member Functions | |
dbs_witness (dba::db_index &db, witness_schedule_service_i &, dynamic_global_property_service_i &, dba::db_accessor< chain_property_object > &) | |
const witness_object & | get (const account_name_type &owner) const override |
bool | is_exists (const account_name_type &owner) const override |
const witness_object & | get_top_witness () const override |
const witness_object & | create_witness (const account_name_type &owner, const std::string &url, const public_key_type &block_signing_key, const chain_properties &props) override |
const witness_object & | create_initial_witness (const account_name_type &owner, const public_key_type &block_signing_key) override |
void | update_witness (const witness_object &witness, const std::string &url, const public_key_type &block_signing_key, const chain_properties &props) override |
void | adjust_witness_vote (const witness_object &witness, const share_type &delta) override |
void | adjust_witness_votes (const account_object &account, const share_type &delta) override |
![]() | |
dbs_service_base (dba::db_index &db) | |
virtual const object_type & | create (const modifier_type &modifier) override |
virtual void | update (const modifier_type &modifier) override |
virtual void | update (const object_type &o, const modifier_type &modifier) override |
virtual void | remove () override |
virtual void | remove (const object_type &o) override |
virtual void | remove_all (const std::vector< object_cref_type > &os) override |
virtual bool | is_exists () const override |
virtual const object_type & | get () const override |
const object_type & | get_by (const Key &arg) const |
const object_type * | find_by (const Key &arg) const |
void | foreach_by (Call &&call) const |
std::vector< object_cref_type > | get_range_by (LowerBounder lower, UpperBounder upper) const |
std::vector< object_cref_type > | get_filtered_range_by (LowerBounder lower, UpperBounder upper, UnaryPredicate filter) const |
![]() | |
virtual | ~dbs_base () |
![]() | |
virtual | ~base_service_i () |
Friends | |
class | dbservice_dbs_factory |
Additional Inherited Members | |
![]() | |
using | base_service_type = dbs_service_base |
using | modifier_type = typename service_interface::modifier_type |
using | object_type = typename service_interface::object_type |
using | object_cref_type = typename service_interface::object_cref_type |
![]() | |
using | object_type = witness_object |
using | modifier_type = std::function< void(object_type &)> |
using | call_type = std::function< void(const object_type &)> |
using | object_cref_type = std::reference_wrapper< const object_type > |
![]() | |
typedef dbs_base | _base_type |
![]() | |
dbs_base ()=delete | |
dbs_base (dbs_base &&)=delete | |
dbs_base (dba::db_index &) | |
time_point_sec | head_block_time () |
dba::db_index & | db_impl () |
const dba::db_index & | db_impl () const |
Definition at line 54 of file witness.hpp.
|
explicit |
Definition at line 16 of file witness.cpp.
|
overridevirtual |
this updates the vote of a single witness as a result of a vote being added or removed
witnesses with a low number of votes could overflow the time field and end up with a scheduled time in the past
Implements scorum::chain::witness_service_i.
Definition at line 109 of file witness.cpp.
|
overridevirtual |
this is called by adjust_proxied_witness_votes
when account proxy to self
Implements scorum::chain::witness_service_i.
Definition at line 98 of file witness.cpp.
|
overridevirtual |
Implements scorum::chain::witness_service_i.
Definition at line 66 of file witness.cpp.
|
overridevirtual |
Implements scorum::chain::witness_service_i.
Definition at line 48 of file witness.cpp.
|
overridevirtual |
Implements scorum::chain::witness_service_i.
Definition at line 27 of file witness.cpp.
|
overridevirtual |
Implements scorum::chain::witness_service_i.
Definition at line 41 of file witness.cpp.
|
overridevirtual |
Implements scorum::chain::witness_service_i.
Definition at line 36 of file witness.cpp.
|
overridevirtual |
Implements scorum::chain::witness_service_i.
Definition at line 86 of file witness.cpp.
|
friend |
Definition at line 56 of file witness.hpp.