From 1f284a5fe1980a1e32115f1439b163e2b44e835e Mon Sep 17 00:00:00 2001 From: JukLee0ira Date: Thu, 17 Apr 2025 10:38:48 +0800 Subject: [PATCH] eth: some typo mistake (#16802) --- eth/backend.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/eth/backend.go b/eth/backend.go index da8ec18b4b9e..d37a116a3077 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -359,14 +359,14 @@ func CreateConsensusEngine(stack *node.Node, config *ethash.Config, chainConfig } // Otherwise assume proof-of-work - switch { - case config.PowMode == ethash.ModeFake: + switch config.PowMode { + case ethash.ModeFake: log.Warn("Ethash used in fake mode") return ethash.NewFaker() - case config.PowMode == ethash.ModeTest: + case ethash.ModeTest: log.Warn("Ethash used in test mode") return ethash.NewTester() - case config.PowMode == ethash.ModeShared: + case ethash.ModeShared: log.Warn("Ethash used in shared mode") return ethash.NewShared() default: @@ -383,7 +383,7 @@ func CreateConsensusEngine(stack *node.Node, config *ethash.Config, chainConfig } } -// APIs returns the collection of RPC services the ethereum package offers. +// APIs return the collection of RPC services the ethereum package offers. // NOTE, some of these services probably need to be moved to somewhere else. func (e *Ethereum) APIs() []rpc.API { apis := ethapi.GetAPIs(e.ApiBackend, e.BlockChain())