5#include <boost/multi_index/hashed_index.hpp>
7namespace bmi = boost::multi_index;
34 namespace finality_status {
36 struct by_status_expiry;
47 bmi::hashed_unique< tag<finality_status::by_trx_id>,
48 member<finality_status_object, chain::transaction_id_type, &finality_status_object::trx_id> >,
49 ordered_non_unique< tag<finality_status::by_status_expiry>,
51 const_mem_fun<finality_status_object, bool, &finality_status_object::is_in_block>,
52 member< finality_status_object, fc::time_point, &finality_status_object::received >
55 ordered_non_unique< tag<finality_status::by_block_num>,
56 const_mem_fun<finality_status_object, uint32_t, &finality_status_object::block_num> >
constexpr uint32_t no_block_num
boost::multi_index_container< finality_status_object, indexed_by< bmi::hashed_unique< tag< finality_status::by_trx_id >, member< finality_status_object, chain::transaction_id_type, &finality_status_object::trx_id > >, ordered_non_unique< tag< finality_status::by_status_expiry >, composite_key< finality_status_object, const_mem_fun< finality_status_object, bool, &finality_status_object::is_in_block >, member< finality_status_object, fc::time_point, &finality_status_object::received > > >, ordered_non_unique< tag< finality_status::by_block_num >, const_mem_fun< finality_status_object, uint32_t, &finality_status_object::block_num > > > > finality_status_multi_index
#define FC_REFLECT(TYPE, MEMBERS)
Specializes fc::reflector for TYPE.
tracks status related to a transaction in the blockchain
chain::transaction_id_type trx_id
chain::block_id_type block_id
fc::time_point trx_expiry
size_t memory_size() const
chain::block_timestamp_type block_timestamp
uint32_t block_num() const