mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-25 06:42:16 +00:00
post rebase fixes
This commit is contained in:
parent
3f90fcae48
commit
befd8b0cb2
2
glide.lock
generated
2
glide.lock
generated
@ -92,7 +92,7 @@ imports:
|
||||
subpackages:
|
||||
- term
|
||||
- name: github.com/tendermint/tmsp
|
||||
version: eece35eeebacee1ab94b8338e77e0d1c2d880ecc
|
||||
version: fec038bdec3495a2a06c6aa8f63e9716bad335dd
|
||||
subpackages:
|
||||
- client
|
||||
- example/counter
|
||||
|
@ -391,8 +391,7 @@ func newConsensusState(config cfg.Config) *consensus.ConsensusState {
|
||||
|
||||
// Make event switch
|
||||
eventSwitch := types.NewEventSwitch()
|
||||
_, err := eventSwitch.Start()
|
||||
if err != nil {
|
||||
if _, err := eventSwitch.Start(); err != nil {
|
||||
Exit(Fmt("Failed to start event switch: %v", err))
|
||||
}
|
||||
|
||||
|
@ -196,7 +196,7 @@ func (s *State) validateBlock(block *types.Block) error {
|
||||
// ApplyBlock executes the block, then commits and updates the mempool atomically
|
||||
|
||||
// Execute and commit block against app, save block and state
|
||||
func (s *State) ApplyBlock(eventCache events.Fireable, proxyAppConn proxy.AppConnConsensus,
|
||||
func (s *State) ApplyBlock(eventCache types.Fireable, proxyAppConn proxy.AppConnConsensus,
|
||||
block *types.Block, partsHeader types.PartSetHeader, mempool Mempool) error {
|
||||
|
||||
// Run the block on the State:
|
||||
@ -365,7 +365,7 @@ func loadApplyBlock(blockIndex int, s *State, blockStore proxy.BlockStore, appCo
|
||||
block := blockStore.LoadBlock(blockIndex)
|
||||
panicOnNilBlock(blockIndex, blockStore.Height(), block, blockMeta) // XXX
|
||||
|
||||
var eventCache events.Fireable // nil
|
||||
var eventCache types.Fireable // nil
|
||||
return s.ApplyBlock(eventCache, appConnConsensus, block, blockMeta.PartsHeader, mockMempool{})
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user