Dogecoin Core  1.14.2
P2P Digital Currency
Functions
chain.cpp File Reference
#include "chain.h"
#include "validation.h"
Include dependency graph for chain.cpp:

Go to the source code of this file.

Functions

arith_uint256 GetBlockProof (const CBlockIndex &block)
 
int64_t GetBlockProofEquivalentTime (const CBlockIndex &to, const CBlockIndex &from, const CBlockIndex &tip, const Consensus::Params &params)
 Return the time it would take to redo the work difference between from and to, assuming the current hashrate corresponds to the difficulty at tip, in seconds. More...
 

Function Documentation

◆ GetBlockProof()

arith_uint256 GetBlockProof ( const CBlockIndex block)

Definition at line 149 of file chain.cpp.

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

◆ GetBlockProofEquivalentTime()

int64_t GetBlockProofEquivalentTime ( const CBlockIndex to,
const CBlockIndex from,
const CBlockIndex tip,
const Consensus::Params params 
)

Return the time it would take to redo the work difference between from and to, assuming the current hashrate corresponds to the difficulty at tip, in seconds.

Definition at line 164 of file chain.cpp.

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