github.com/amazechain/amc@v0.1.3/utils/forks.go (about)

     1  package utils
     2  
     3  import (
     4  	"github.com/amazechain/amc/common/types"
     5  	"github.com/holiman/uint256"
     6  )
     7  
     8  // CreateForkDigest creates a fork digest from a genesis time and genesis
     9  // validators root, utilizing the current slot to determine
    10  // the active fork version in the node.
    11  func CreateForkDigest(currentBlockNr *uint256.Int, genesisValidatorsRoot types.Hash) ([4]byte, error) {
    12  	//todo currentBlockNr
    13  	return ToBytes4(genesisValidatorsRoot[:]), nil
    14  }