Browse Source

cherry pick @melekes changes

pull/1782/head
Liamsi 7 years ago
parent
commit
4fb40e5437
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      consensus/wal_generator.go

+ 2
- 1
consensus/wal_generator.go View File

@ -92,10 +92,11 @@ func WALWithNBlocks(numBlocks int) (data []byte, err error) {
select {
case <-numBlocksWritten:
consensusState.Stop()
wr.Flush()
return b.Bytes(), nil
case <-time.After(1 * time.Minute):
wr.Flush()
consensusState.Stop()
return []byte{}, fmt.Errorf("waited too long for tendermint to produce %d blocks (grep logs for `wal_generator`)", numBlocks)
}
}


Loading…
Cancel
Save