lp181
LP181 implements the epoch logic specified here: https://github.com/luxfi/LPs/blob/main/LPs/181-p-chain-epoched-views/README.md
import "github.com/luxfi/node/vms/proposervm/lp181"LP181 implements the epoch logic specified here: https://github.com/luxfi/LPs/blob/main/LPs/181-p-chain-epoched-views/README.md
Functions
NewEpoch
func NewEpoch(
upgrades upgrade.Config,
parentPChainHeight uint64,
parentEpoch block.Epoch,
parentTimestamp time.Time,
_ time.Time,
) block.EpochNewEpoch returns a child block's epoch based on its parent.