Bitcoin ABC  0.24.7
P2P Digital Currency
Namespaces | Functions
eda.h File Reference
#include <cstdint>
Include dependency graph for eda.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 Consensus
 

Functions

uint32_t CalculateNextWorkRequired (const CBlockIndex *pindexPrev, int64_t nFirstBlockTime, const Consensus::Params &params)
 Do difficulty adjustement Satoshi's way. More...
 
uint32_t GetNextEDAWorkRequired (const CBlockIndex *pindexPrev, const CBlockHeader *pblock, const Consensus::Params &params)
 Compute the next required proof of work using the legacy Bitcoin difficulty adjustment + Emergency Difficulty Adjustment (EDA). More...
 

Function Documentation

◆ CalculateNextWorkRequired()

uint32_t CalculateNextWorkRequired ( const CBlockIndex pindexPrev,
int64_t  nFirstBlockTime,
const Consensus::Params params 
)

Do difficulty adjustement Satoshi's way.

Definition at line 14 of file eda.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetNextEDAWorkRequired()

uint32_t GetNextEDAWorkRequired ( const CBlockIndex pindexPrev,
const CBlockHeader pblock,
const Consensus::Params params 
)

Compute the next required proof of work using the legacy Bitcoin difficulty adjustment + Emergency Difficulty Adjustment (EDA).

Definition at line 45 of file eda.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: