SetEventBus - sets the event bus for publishing block related events. If not called, it defaults to types.NopEventBus.
(eventBus types.BlockEventPublisher)
| 84 | // SetEventBus - sets the event bus for publishing block related events. |
| 85 | // If not called, it defaults to types.NopEventBus. |
| 86 | func (blockExec *BlockExecutor) SetEventBus(eventBus types.BlockEventPublisher) { |
| 87 | blockExec.eventBus = eventBus |
| 88 | } |
| 89 | |
| 90 | // CreateProposalBlock calls state.MakeBlock with evidence from the evpool |
| 91 | // and txs from the mempool. The max bytes must be big enough to fit the commit. |
no outgoing calls