Scorum
witness_vote.cpp
Go to the documentation of this file.
2 
4 
6 
7 namespace scorum {
8 namespace chain {
9 
11  : base_service_type(db)
12 {
13 }
14 
16 {
17  return find_by<by_account_witness>(boost::make_tuple(vouter_id, witness_id)) != nullptr;
18 }
19 
21 {
22  try
23  {
24  return get_by<by_account_witness>(boost::make_tuple(vouter_id, witness_id));
25  }
26  FC_CAPTURE_AND_RETHROW((vouter_id)(witness_id))
27 }
28 
29 } // namespace chain
30 } // namespace scorum
tracks the blockchain state in an extensible manner
Definition: database.hpp:52
virtual const object_type & get() const override
Definition: asset.cpp:15