Get the minimum time a miner should use in the next block. This always accounts for the BIP94 timewarp rule, so does not necessarily reflect the consensus limit.

Synopsis

Declared in <node/miner.h>

int64_t
GetMinimumTime(
    CBlockIndex const* pindexPrev,
    int64_t difficulty_adjustment_interval);

Return Value

The minimum timestamp allowed for the next block.

Parameters

Name

Description

pindexPrev

The block the next block will build on.

difficulty_adjustment_interval

The number of blocks between difficulty adjustments.

Created with MrDocs