github.com/bigzoro/my_simplechain@v0.0.0-20240315012955-8ad0a2a29bb9/consensus/hotstuff/config.go (about)

     1  package hotstuff
     2  
     3  import (
     4  	"github.com/bigzoro/my_simplechain/consensus"
     5  	bls "github.com/bigzoro/my_simplechain/consensus/hotstuff/bls12-381"
     6  	"github.com/bigzoro/my_simplechain/consensus/hotstuff/common"
     7  )
     8  
     9  // The config to build the Hotstuff consensus engine(council)
    10  type Config struct {
    11  	Mine bool
    12  
    13  	Id common.ID
    14  
    15  	Key *bls.PrivateKey
    16  
    17  	ServiceMaker func(consensus.ChainReader) *Service
    18  
    19  	ChainReader consensus.ChainReader
    20  }