consensus: remove logic to unlock block on 2/3 prevote for nil (#6954)

This commit is contained in:
William Banfield
2021-09-24 11:19:57 -04:00
committed by GitHub
parent 87f4beb374
commit a3889ee2cb
11 changed files with 389 additions and 270 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ func MakeHeader(h *types.Header) (*types.Header, error) {
if h.Height == 0 {
h.Height = 1
}
if h.LastBlockID.IsZero() {
if h.LastBlockID.IsNil() {
h.LastBlockID = MakeBlockID()
}
if h.ChainID == "" {