Skip to content

Commit 72ca467

Browse files
committed
fix: remove panic
1 parent b6a96a1 commit 72ca467

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

controller/block.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ func (c *Controller) CommitCertificateParallel(qc *lib.QuorumCertificate, block
413413
// get latest validator set
414414
valSet, err := c.FSM.GetCommitteeMembers(id)
415415
if err != nil {
416-
panic(err)
416+
return err
417417
}
418418
// TODO handle err
419419
if _, found := c.LastValidatorSet[c.ChainHeight()+1]; !found {

0 commit comments

Comments
 (0)