fix travis checker

Signed-off-by: Leo Chen <leo@harmony.one>
pull/3379/head
Leo Chen 4 years ago
parent f9018be0ca
commit 5d7693d318
  1. 4
      consensus/consensus.go
  2. 4
      consensus/view_change_construct.go

@ -27,7 +27,7 @@ const (
var errLeaderPriKeyNotFound = errors.New("getting leader private key from consensus public keys failed") var errLeaderPriKeyNotFound = errors.New("getting leader private key from consensus public keys failed")
// BlockVerifier is a function used to verify the block // BlockVerifierFunc is a function used to verify the block
type BlockVerifierFunc func(*types.Block) error type BlockVerifierFunc func(*types.Block) error
// Consensus is the main struct with all states and data related to consensus process. // Consensus is the main struct with all states and data related to consensus process.
@ -208,7 +208,7 @@ func New(
consensus.RndChannel = make(chan [vdfAndSeedSize]byte) consensus.RndChannel = make(chan [vdfAndSeedSize]byte)
consensus.IgnoreViewIDCheck = abool.NewBool(false) consensus.IgnoreViewIDCheck = abool.NewBool(false)
// Make Sure Verifier is not null // Make Sure Verifier is not null
consensus.vc = NewViewChange() consensus.vc = newViewChange()
return &consensus, nil return &consensus, nil
} }

@ -63,8 +63,8 @@ type viewChange struct {
vcLock sync.RWMutex vcLock sync.RWMutex
} }
// NewViewChange returns a new viewChange object // newViewChange returns a new viewChange object
func NewViewChange() *viewChange { func newViewChange() *viewChange {
vc := viewChange{} vc := viewChange{}
vc.Reset() vc.Reset()
return &vc return &vc

Loading…
Cancel
Save