Update a block header's time field and return the new time.
Declared in <node/miner.h>
int64_t
UpdateTime(
CBlockHeader* pblock,
Consensus::Params const& consensusParams,
CBlockIndex const* pindexPrev);
The updated block time.
| Name | Description |
|---|---|
| pblock | The block header to update. |
| consensusParams | Consensus parameters used to bound the time. |
| pindexPrev | The previous block the header builds on. |