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

#include <GasPricer.h>

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

Public Member Functions

 TrivialGasPricer ()=default
 
 TrivialGasPricer (u256 const &_ask, u256 const &_bid)
 
void setAsk (u256 const &_ask)
 
void setBid (u256 const &_bid)
 
u256 ask () const
 
u256 ask (Block const &) const override
 
u256 bid (TransactionPriority=TransactionPriority::Medium) const override
 
- Public Member Functions inherited from dev::eth::GasPricer
 GasPricer ()=default
 
virtual ~GasPricer ()=default
 
virtual void update (BlockChain const &)
 

Private Attributes

u256 m_ask = DefaultGasPrice
 
u256 m_bid = DefaultGasPrice
 

Detailed Description

Definition at line 57 of file GasPricer.h.

Constructor & Destructor Documentation

dev::eth::TrivialGasPricer::TrivialGasPricer ( )
default
dev::eth::TrivialGasPricer::TrivialGasPricer ( u256 const &  _ask,
u256 const &  _bid 
)
inline

Definition at line 61 of file GasPricer.h.

Member Function Documentation

u256 dev::eth::TrivialGasPricer::ask ( ) const
inline

Definition at line 66 of file GasPricer.h.

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

Implements dev::eth::GasPricer.

Definition at line 67 of file GasPricer.h.

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

Implements dev::eth::GasPricer.

Definition at line 68 of file GasPricer.h.

void dev::eth::TrivialGasPricer::setAsk ( u256 const &  _ask)
inline

Definition at line 63 of file GasPricer.h.

Here is the caller graph for this function:

void dev::eth::TrivialGasPricer::setBid ( u256 const &  _bid)
inline

Definition at line 64 of file GasPricer.h.

Here is the caller graph for this function:

Member Data Documentation

u256 dev::eth::TrivialGasPricer::m_ask = DefaultGasPrice
private

Definition at line 71 of file GasPricer.h.

u256 dev::eth::TrivialGasPricer::m_bid = DefaultGasPrice
private

Definition at line 72 of file GasPricer.h.


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