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

#include <SealEngine.h>

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

Public Member Functions

void generateSeal (BlockHeader const &_bi) override
 
void onSealGenerated (std::function< void(bytes const &)> const &_f) override
 
EVMSchedule const & evmSchedule (EnvInfo const &) const override
 
- Public Member Functions inherited from dev::eth::SealEngineFace
virtual ~SealEngineFace ()
 
virtual std::string name () const =0
 
virtual unsigned revision () const
 
virtual unsigned sealFields () const
 
virtual bytes sealRLP () const
 
virtual StringHashMap jsInfo (BlockHeader const &) const
 
virtual void verify (Strictness _s, BlockHeader const &_bi, BlockHeader const &_parent=BlockHeader(), bytesConstRef _block=bytesConstRef()) const
 Don't forget to call Super::verify when subclassing & overriding. More...
 
virtual void verifyTransaction (ImportRequirements::value _ir, TransactionBase const &_t, BlockHeader const &_bi) const
 Additional verification for transactions in blocks. More...
 
virtual void populateFromParent (BlockHeader &_bi, BlockHeader const &_parent) const
 Don't forget to call Super::populateFromParent when subclassing & overriding. More...
 
bytes option (std::string const &_name) const
 
bool setOption (std::string const &_name, bytes const &_value)
 
virtual strings sealers () const
 
virtual std::string sealer () const
 
virtual void setSealer (std::string const &)
 
virtual bool shouldSeal (Interface *)
 
virtual void onSealGenerated (std::function< void(bytes const &s)> const &_f)=0
 
virtual void cancelGeneration ()
 
ChainOperationParams const & chainParams () const
 
void setChainParams (ChainOperationParams const &_params)
 
SealEngineFacewithChainParams (ChainOperationParams const &_params)
 
virtual bool isPrecompiled (Address const &_a, u256 const &_blockNumber) const
 
virtual bigint costOfPrecompiled (Address const &_a, bytesConstRef _in, u256 const &) const
 
virtual std::pair< bool, bytesexecutePrecompiled (Address const &_a, bytesConstRef _in, u256 const &) const
 
void setFascSchedule (EVMSchedule _fascSchedule) const
 
EVMSchedulegetFascSchedule () const
 

Protected Attributes

std::function< void(bytes const &s)> m_onSealGenerated
 

Additional Inherited Members

- Public Attributes inherited from dev::eth::SealEngineFace
std::set< AddressdeleteAddresses
 
- Protected Member Functions inherited from dev::eth::SealEngineFace
virtual bool onOptionChanging (std::string const &, bytes const &)
 

Detailed Description

Definition at line 111 of file SealEngine.h.

Member Function Documentation

EVMSchedule const & SealEngineBase::evmSchedule ( EnvInfo const &  _envInfo) const
overridevirtual

Implements dev::eth::SealEngineFace.

Definition at line 61 of file SealEngine.cpp.

Here is the call graph for this function:

void dev::eth::SealEngineBase::generateSeal ( BlockHeader const &  _bi)
inlineoverridevirtual

Implements dev::eth::SealEngineFace.

Definition at line 114 of file SealEngine.h.

Here is the call graph for this function:

void dev::eth::SealEngineBase::onSealGenerated ( std::function< void(bytes const &)> const &  _f)
inlineoverride

Definition at line 121 of file SealEngine.h.

Here is the call graph for this function:

Member Data Documentation

std::function<void(bytes const& s)> dev::eth::SealEngineBase::m_onSealGenerated
protected

Definition at line 125 of file SealEngine.h.


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