Browse Source

stop eventBus

pull/981/head
Anton Kaliaev 7 years ago
parent
commit
5a83e58428
No known key found for this signature in database GPG Key ID: 7B6881D965918214
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      consensus/wal_generator.go

+ 2
- 0
consensus/wal_generator.go View File

@ -33,6 +33,7 @@ func WALWithNBlocks(numBlocks int) (data []byte, err error) {
app := dummy.NewPersistentDummyApplication(filepath.Join(config.DBDir(), "wal_generator"))
logger := log.TestingLogger().With("wal_generator", "wal_generator")
logger.Info("generating WAL (last height msg excluded)", "numBlocks", numBlocks)
/////////////////////////////////////////////////////////////////////////////
// COPY PASTE FROM node.go WITH A FEW MODIFICATIONS
@ -63,6 +64,7 @@ func WALWithNBlocks(numBlocks int) (data []byte, err error) {
if err := eventBus.Start(); err != nil {
return nil, errors.Wrap(err, "failed to start event bus")
}
defer eventBus.Stop()
mempool := types.MockMempool{}
consensusState := NewConsensusState(config.Consensus, state.Copy(), proxyApp.Consensus(), blockStore, mempool)
consensusState.SetLogger(logger)


Loading…
Cancel
Save