Skip to content

Commit

Permalink
Merge pull request ethereum#43 from lochjin/v1.14.2-qng
Browse files Browse the repository at this point in the history
BUG:default consensus engine is nil
  • Loading branch information
dindinw authored May 21, 2024
2 parents 2f3cd58 + 43b4a22 commit 0335ea7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions eth/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@ func New(stack *node.Node, config *ethconfig.Config) (*Ethereum, error) {
if err != nil {
return nil, err
}
if config.ConsensusEngine == nil {
config.ConsensusEngine = ethconfig.CreateDefaultConsensusEngine
}
engine, err := config.ConsensusEngine(chainConfig, chainDb)
if err != nil {
return nil, err
Expand Down

0 comments on commit 0335ea7

Please sign in to comment.