Ensure private validator addresses are hex

This commit is contained in:
Ethan Frey
2017-04-21 16:51:17 -04:00
committed by Ethan Buchman
parent b798169c6e
commit 6a0217688f
4 changed files with 72 additions and 5 deletions
+7 -1
View File
@@ -131,7 +131,13 @@ func runReplayTest(t *testing.T, cs *ConsensusState, walFile string, newBlockCh
thisCase *testCase, i int) {
cs.config.Set("cs_wal_file", walFile)
cs.Start()
started, err := cs.Start()
if err != nil {
t.Fatalf("Cannot start consensus: %v", err)
}
if !started {
t.Error("Consensus did not start")
}
// Wait to make a new block.
// This is just a signal that we haven't halted; its not something contained in the WAL itself.
// Assuming the consensus state is running, replay of any WAL, including the empty one,