consensus: track index of privVal

This commit is contained in:
Ethan Buchman
2016-11-16 20:52:08 -05:00
parent deb4c428fd
commit a3d863f83b
5 changed files with 28 additions and 22 deletions

View File

@ -262,6 +262,7 @@ func randConsensusNet(nValidators int) []*ConsensusState {
thisConfig := tendermint_test.ResetConfig(Fmt("consensus_reactor_test_%d", i))
EnsureDir(thisConfig.GetString("cs_wal_dir"), 0700) // dir for wal
css[i] = newConsensusStateWithConfig(thisConfig, state, privVals[i], counter.NewCounterApplication(true))
css[i].SetPrivValidatorIndex(i)
}
return css
}