Scorum
Classes | Functions
scorum::chain::detail Namespace Reference

Classes

class  block_log_impl
 
struct  skip_flags_restorer
 
struct  pending_transactions_restorer
 

Functions

template<typename Lambda >
void with_skip_flags (database &db, uint32_t skip_flags, Lambda callback)
 
template<typename Lambda >
void without_pending_transactions (database &db, std::vector< signed_transaction > &&pending_transactions, Lambda callback)
 
asset fund_calculate_per_block (time_point_sec start, time_point_sec deadline, const asset &balance)
 
asset adv_calculate_per_block (time_point_sec start, time_point_sec deadline, time_point_sec block_time_sec, const asset &balance)
 

Function Documentation

◆ adv_calculate_per_block()

asset scorum::chain::detail::adv_calculate_per_block ( time_point_sec  start,
time_point_sec  deadline,
time_point_sec  block_time_sec,
const asset balance 
)

Definition at line 35 of file budgets.cpp.

◆ fund_calculate_per_block()

asset scorum::chain::detail::fund_calculate_per_block ( time_point_sec  start,
time_point_sec  deadline,
const asset balance 
)

Definition at line 18 of file budgets.cpp.

◆ with_skip_flags()

template<typename Lambda >
void scorum::chain::detail::with_skip_flags ( database db,
uint32_t  skip_flags,
Lambda  callback 
)

Set the skip_flags to the given value, call callback, then reset skip_flags to their previous value after callback is done.

Definition at line 117 of file db_with.hpp.

◆ without_pending_transactions()

template<typename Lambda >
void scorum::chain::detail::without_pending_transactions ( database db,
std::vector< signed_transaction > &&  pending_transactions,
Lambda  callback 
)

Empty pending_transactions, call callback, then reset pending_transactions after callback is done.

Pending transactions which no longer validate will be culled.

Definition at line 133 of file db_with.hpp.