Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
dev::eth::BasicGasPricer Class Reference

#include <BasicGasPricer.h>

Inheritance diagram for dev::eth::BasicGasPricer:
[legend]
Collaboration diagram for dev::eth::BasicGasPricer:
[legend]

Public Member Functions

 BasicGasPricer (u256 _weiPerRef, u256 _refsPerBlock)
 
void setRefPrice (u256 _weiPerRef)
 
void setRefBlockFees (u256 _refsPerBlock)
 
u256 ask (Block const &) const override
 
u256 bid (TransactionPriority _p=TransactionPriority::Medium) const override
 
void update (BlockChain const &_bc) override
 
- Public Member Functions inherited from dev::eth::GasPricer
 GasPricer ()=default
 
virtual ~GasPricer ()=default
 

Private Attributes

u256 m_weiPerRef
 
u256 m_refsPerBlock
 
u256 m_gasPerBlock = DefaultBlockGasLimit
 
std::array< u256, 9 > m_octiles
 

Detailed Description

Definition at line 32 of file BasicGasPricer.h.

Constructor & Destructor Documentation

dev::eth::BasicGasPricer::BasicGasPricer ( u256  _weiPerRef,
u256  _refsPerBlock 
)
inlineexplicit

Definition at line 35 of file BasicGasPricer.h.

Member Function Documentation

u256 dev::eth::BasicGasPricer::ask ( Block const &  ) const
inlineoverridevirtual

Implements dev::eth::GasPricer.

Definition at line 40 of file BasicGasPricer.h.

Here is the caller graph for this function:

u256 dev::eth::BasicGasPricer::bid ( TransactionPriority  _p = TransactionPriority::Medium) const
inlineoverridevirtual

Implements dev::eth::GasPricer.

Definition at line 41 of file BasicGasPricer.h.

Here is the call graph for this function:

Here is the caller graph for this function:

void dev::eth::BasicGasPricer::setRefBlockFees ( u256  _refsPerBlock)
inline

Definition at line 38 of file BasicGasPricer.h.

Here is the caller graph for this function:

void dev::eth::BasicGasPricer::setRefPrice ( u256  _weiPerRef)
inline

Definition at line 37 of file BasicGasPricer.h.

Here is the caller graph for this function:

void BasicGasPricer::update ( BlockChain const &  _bc)
overridevirtual

Reimplemented from dev::eth::GasPricer.

Definition at line 34 of file BasicGasPricer.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

u256 dev::eth::BasicGasPricer::m_gasPerBlock = DefaultBlockGasLimit
private

Definition at line 48 of file BasicGasPricer.h.

std::array<u256, 9> dev::eth::BasicGasPricer::m_octiles
private

Definition at line 49 of file BasicGasPricer.h.

u256 dev::eth::BasicGasPricer::m_refsPerBlock
private

Definition at line 47 of file BasicGasPricer.h.

u256 dev::eth::BasicGasPricer::m_weiPerRef
private

Definition at line 46 of file BasicGasPricer.h.


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