consensus/wal: #HEIGHT -> #ENDHEIGHT

This commit is contained in:
Ethan Buchman
2017-04-14 16:27:22 -04:00
parent cb279bf662
commit 54b26869d5
9 changed files with 30 additions and 30 deletions

View File

@ -1202,6 +1202,12 @@ func (cs *ConsensusState) finalizeCommit(height int) {
fail.Fail() // XXX
if cs.wal != nil {
cs.wal.writeEndHeight(height)
}
fail.Fail() // XXX
// Save to blockStore.
if cs.blockStore.Height() < block.Height {
// NOTE: the seenCommit is local justification to commit this block,