consensus: be more explicit when we need to write height after handshake

This commit is contained in:
Ethan Buchman
2017-01-05 20:16:42 -08:00
parent bd222d6e3c
commit bae0bc02a6
2 changed files with 21 additions and 9 deletions
+3 -1
View File
@@ -418,6 +418,9 @@ func (h *Handshaker) ReplayBlocks(appHash []byte, appBlockHeight int, appConnCon
// replay all blocks starting with appBlockHeight+1
var eventCache types.Fireable // nil
// TODO: use stateBlockHeight instead and let the consensus state
// do the replay
var appHash []byte
for i := appBlockHeight + 1; i <= storeBlockHeight; i++ {
h.nBlocks += 1
@@ -443,6 +446,5 @@ func (h *Handshaker) ReplayBlocks(appHash []byte, appBlockHeight int, appConnCon
}
return nil
}
return nil
}