func (blockExec *BlockExecutor) SetEventBus(eventBus types.BlockEventPublisher) {
	blockExec.eventBus = eventBus
}
SetEventBus - sets the event bus for publishing block related events.
If not called, it defaults to types.NopEventBus.
package state
import (
	"fmt"
	fail "github.com/ebuchman/fail-test"
	abci "github.com/tendermint/tendermint/abci/types"
	dbm "github.com/tendermint/tendermint/libs/db"
	"github.com/tendermint/tendermint/libs/log"
	"github.com/tendermint/tendermint/proxy"
	"github.com/tendermint/tendermint/types"
)
type BlockExecutor struct {
	db dbm.DB
	proxyApp proxy.AppConnConsensus
	eventBus types.BlockEventPublisher
	mempool Mempool
	evpool  EvidencePool
	logger log.Logger
}
func NewBlockExecutor(db dbm.DB, logger log.Logger, proxyApp proxy.AppConnConsensus,
	mempool Mempool, evpool EvidencePool) *BlockExecutor {
	return &BlockExecutor{
		db:       db,
		proxyApp: proxyApp,
		eventBus: types.NopEventBus{},
		mempool:  mempool,
		evpool:   evpool,
		logger:   logger,
	}
}