View definition

(*BlockChain).CalcPastMedianTime

Defined in github.com/btcsuite/btcd/blockchain/chain.go

Description

CalcPastMedianTime calculates the median time of the previous few blocks prior to, and including, the end of the current best chain. It is primarily used to ensure new blocks have sane timestamps.

This function is safe for concurrent access.

CalcPastMedianTime is referenced in 2 repositories

github.com/btcsuite/btcd

...