more PrivValidator interface

This commit is contained in:
Ethan Buchman
2017-09-18 22:05:33 -04:00
parent fd1b0b997a
commit 944ebccfe9
11 changed files with 138 additions and 143 deletions

View File

@@ -368,9 +368,8 @@ func randConsensusNetWithPeers(nValidators, nPeers int, testName string, tickerF
if i < nValidators {
privVal = privVals[i]
} else {
privVal = types.GenPrivValidator()
_, tempFilePath := Tempfile("priv_validator_")
privVal.SetFile(tempFilePath)
privVal = types.GenPrivValidator(tempFilePath)
}
css[i] = newConsensusStateWithConfig(thisConfig, state, privVal, appFunc())