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.
Declared in <chain.h>
int64_t
GetBlockProofEquivalentTime(
CBlockIndex const& to,
CBlockIndex const& from,
CBlockIndex const& tip,
Consensus::Params const& params);
The equivalent time in seconds.
| 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. |