github.com/koko1123/flow-go-1@v0.29.6/consensus/hotstuff/integration/defaults_test.go (about)

     1  package integration
     2  
     3  import (
     4  	"time"
     5  
     6  	"github.com/koko1123/flow-go-1/model/flow"
     7  	"github.com/koko1123/flow-go-1/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  }
    20  
    21  func DefaultStart() uint64 {
    22  	return 1
    23  }
    24  
    25  func DefaultPruned() uint64 {
    26  	return 0
    27  }
    28  
    29  func DefaultVoted() uint64 {
    30  	return 0
    31  }