mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-05-30 02:36:42 +00:00

* Add cache for virtual pastMedianTime * Implement InvalidateVirtualPastMedianTimeCache for mocPastMedianTimeManager
11 lines
349 B
Go
11 lines
349 B
Go
package model
|
|
|
|
import "github.com/kaspanet/kaspad/domain/consensus/model/externalapi"
|
|
|
|
// PastMedianTimeManager provides a method to resolve the
|
|
// past median time of a block
|
|
type PastMedianTimeManager interface {
|
|
PastMedianTime(stagingArea *StagingArea, blockHash *externalapi.DomainHash) (int64, error)
|
|
InvalidateVirtualPastMedianTimeCache()
|
|
}
|