github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/consensus/hotstuff/integration/defaults_test.go (about)

     1  package integration
     2  
     3  import (
     4  	"time"
     5  
     6  	"github.com/onflow/flow-go/model/flow"
     7  	"github.com/onflow/flow-go/utils/unittest"
     8  )
     9  
    10  func DefaultRoot() *flow.Header {
    11  	header := &flow.Header{
    12  		ChainID:     "chain",
    13  		ParentID:    flow.ZeroID,
    14  		Height:      0,
    15  		PayloadHash: unittest.IdentifierFixture(),
    16  		Timestamp:   time.Now().UTC(),
    17  	}
    18  	return header
    19  }