From 4333cf6954f647f125c92d648f7c978ff2c4c9b4 Mon Sep 17 00:00:00 2001
From: Ethan Buchman <ethan@coinculture.info>
Date: Wed, 17 Feb 2016 01:23:26 -0500
Subject: [PATCH] fix reconstructLastCommit for non-zero rounds

---
 .../src/github.com/tendermint/tendermint/consensus/state.go     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Godeps/_workspace/src/github.com/tendermint/tendermint/consensus/state.go b/Godeps/_workspace/src/github.com/tendermint/tendermint/consensus/state.go
index 7e253bb8..3b989fe8 100644
--- a/Godeps/_workspace/src/github.com/tendermint/tendermint/consensus/state.go
+++ b/Godeps/_workspace/src/github.com/tendermint/tendermint/consensus/state.go
@@ -340,8 +340,8 @@ func (cs *ConsensusState) reconstructLastCommit(state *sm.State) {
 	if state.LastBlockHeight == 0 {
 		return
 	}
-	lastPrecommits := types.NewVoteSet(state.LastBlockHeight, 0, types.VoteTypePrecommit, state.LastBondedValidators)
 	seenValidation := cs.blockStore.LoadSeenValidation(state.LastBlockHeight)
+	lastPrecommits := types.NewVoteSet(state.LastBlockHeight, seenValidation.Round(), types.VoteTypePrecommit, state.LastBondedValidators)
 	for idx, precommit := range seenValidation.Precommits {
 		if precommit == nil {
 			continue
-- 
GitLab