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.
Synopsis
Declared in <chain.h>
int64_t
GetBlockProofEquivalentTime(
CBlockIndex const& to,
CBlockIndex const& from,
CBlockIndex const& tip,
Consensus::Params const& params);
Return Value
The equivalent time in seconds.
Parameters
Name |
Description |
to |
The block index entry to measure work up to. |
from |
The block index entry to measure work from. |
tip |
The block index entry whose difficulty sets the assumed hashrate. |
params |
The consensus parameters. |
Created with MrDocs