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

#include <BasicAuthority.h>

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

Public Member Functions

std::string name () const override
 
unsigned revision () const override
 
unsigned sealFields () const override
 
bytes sealRLP () const override
 
void populateFromParent (BlockHeader &, BlockHeader const &) const override
 Don't forget to call Super::populateFromParent when subclassing & overriding. More...
 
StringHashMap jsInfo (BlockHeader const &_bi) const override
 
void verify (Strictness _s, BlockHeader const &_bi, BlockHeader const &_parent, bytesConstRef _block) const override
 Don't forget to call Super::verify when subclassing & overriding. More...
 
bool shouldSeal (Interface *) override
 
void generateSeal (BlockHeader const &_bi) override
 
void setSecret (Secret const &_s)
 
- Public Member Functions inherited from dev::eth::SealEngineBase
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 void verifyTransaction (ImportRequirements::value _ir, TransactionBase const &_t, BlockHeader const &_bi) const
 Additional verification for transactions in blocks. 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 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
 

Static Public Member Functions

static Signature sig (BlockHeader const &_bi)
 
static BlockHeadersetSig (BlockHeader &_bi, Signature const &_sig)
 
static void init ()
 

Private Member Functions

bool onOptionChanging (std::string const &_name, bytes const &_value) override
 

Private Attributes

Secret m_secret
 
AddressHash m_authorities
 

Additional Inherited Members

- Public Attributes inherited from dev::eth::SealEngineFace
std::set< AddressdeleteAddresses
 
- Protected Attributes inherited from dev::eth::SealEngineBase
std::function< void(bytes const &s)> m_onSealGenerated
 

Detailed Description

Definition at line 33 of file BasicAuthority.h.

Member Function Documentation

void BasicAuthority::generateSeal ( BlockHeader const &  _bi)
overridevirtual

Implements dev::eth::SealEngineFace.

Definition at line 49 of file BasicAuthority.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void BasicAuthority::init ( )
static

Definition at line 33 of file BasicAuthority.cpp.

Here is the caller graph for this function:

StringHashMap BasicAuthority::jsInfo ( BlockHeader const &  _bi) const
overridevirtual

Reimplemented from dev::eth::SealEngineFace.

Definition at line 38 of file BasicAuthority.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

std::string dev::eth::BasicAuthority::name ( ) const
inlineoverridevirtual

Implements dev::eth::SealEngineFace.

Definition at line 36 of file BasicAuthority.h.

bool BasicAuthority::onOptionChanging ( std::string const &  _name,
bytes const &  _value 
)
overrideprivatevirtual

Reimplemented from dev::eth::SealEngineFace.

Definition at line 58 of file BasicAuthority.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void BasicAuthority::populateFromParent ( BlockHeader _bi,
BlockHeader const &  _parent 
) const
overridevirtual

Don't forget to call Super::populateFromParent when subclassing & overriding.

Reimplemented from dev::eth::SealEngineFace.

Definition at line 70 of file BasicAuthority.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

unsigned dev::eth::BasicAuthority::revision ( ) const
inlineoverridevirtual

Reimplemented from dev::eth::SealEngineFace.

Definition at line 37 of file BasicAuthority.h.

unsigned dev::eth::BasicAuthority::sealFields ( ) const
inlineoverridevirtual

Reimplemented from dev::eth::SealEngineFace.

Definition at line 38 of file BasicAuthority.h.

bytes dev::eth::BasicAuthority::sealRLP ( ) const
inlineoverridevirtual

Reimplemented from dev::eth::SealEngineFace.

Definition at line 39 of file BasicAuthority.h.

Here is the call graph for this function:

void dev::eth::BasicAuthority::setSecret ( Secret const &  _s)
inline

Definition at line 49 of file BasicAuthority.h.

Here is the call graph for this function:

static BlockHeader& dev::eth::BasicAuthority::setSig ( BlockHeader _bi,
Signature const &  _sig 
)
inlinestatic

Definition at line 48 of file BasicAuthority.h.

Here is the call graph for this function:

bool BasicAuthority::shouldSeal ( Interface _i)
overridevirtual

Reimplemented from dev::eth::SealEngineFace.

Definition at line 43 of file BasicAuthority.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

static Signature dev::eth::BasicAuthority::sig ( BlockHeader const &  _bi)
inlinestatic

Definition at line 47 of file BasicAuthority.h.

Here is the call graph for this function:

void BasicAuthority::verify ( Strictness  _s,
BlockHeader const &  _bi,
BlockHeader const &  _parent,
bytesConstRef  _block 
) const
overridevirtual

Don't forget to call Super::verify when subclassing & overriding.

Reimplemented from dev::eth::SealEngineFace.

Definition at line 77 of file BasicAuthority.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

AddressHash dev::eth::BasicAuthority::m_authorities
private

Definition at line 56 of file BasicAuthority.h.

Secret dev::eth::BasicAuthority::m_secret
private

Definition at line 55 of file BasicAuthority.h.


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