Skip to content

Commit

Permalink
fix babe to use right handler func
Browse files Browse the repository at this point in the history
  • Loading branch information
noot committed Jun 16, 2021
1 parent 786dc1c commit 62b7277
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/babe/babe.go
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ func (b *Service) handleSlot(slotNum uint64) error {
"parent", parent.Hash(),
)

if err := b.blockImportHandler.HandleBlockImport(block, ts); err != nil {
if err := b.blockImportHandler.HandleBlockProduced(block, ts); err != nil {
logger.Warn("failed to import built block", "error", err)
return err
}
Expand Down
4 changes: 2 additions & 2 deletions lib/babe/mocks/BlockImportHandler.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/babe/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,5 @@ type EpochState interface {

// BlockImportHandler is the interface for the handler of new blocks
type BlockImportHandler interface {
HandleBlockImport(block *types.Block, state *rtstorage.TrieState) error
HandleBlockProduced(block *types.Block, state *rtstorage.TrieState) error
}

0 comments on commit 62b7277

Please sign in to comment.