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