Ethereum  PoC-8
The C++ Implementation of Ethereum
SealEngine.h File Reference
#include <functional>
#include <unordered_map>
#include <libdevcore/Guards.h>
#include <libdevcore/RLP.h>
#include "BlockHeader.h"
#include "Common.h"

Go to the source code of this file.

Classes

class  dev::eth::SealEngineFace
 
class  dev::eth::SealEngineBase
 
class  dev::eth::SealEngineRegistrar
 
class  dev::eth::NoProof
 

Namespaces

 dev
 
 dev::eth
 

Macros

#define ETH_REGISTER_SEAL_ENGINE(Name)   static SealEngineFactory __eth_registerSealEngineFactory ## Name = SealEngineRegistrar::registerSealEngine<Name>(#Name)
 

Typedefs

using dev::eth::SealEngineFactory = std::function< SealEngineFace *()>
 

Functions

u256 dev::eth::calculateEthashDifficulty (ChainOperationParams const &_chainParams, BlockHeader const &_bi, BlockHeader const &_parent)
 
u256 dev::eth::calculateGasLimit (ChainOperationParams const &_chainParams, BlockHeader const &_bi, u256 const &_gasFloorTarget)
 

Detailed Description

Author
Gav Wood i@gav.nosp@m.wood.nosp@m..com
Date
2014

Determines the PoW algorithm.

Definition in file SealEngine.h.

Macro Definition Documentation

◆ ETH_REGISTER_SEAL_ENGINE

#define ETH_REGISTER_SEAL_ENGINE (   Name)    static SealEngineFactory __eth_registerSealEngineFactory ## Name = SealEngineRegistrar::registerSealEngine<Name>(#Name)

Definition at line 140 of file SealEngine.h.