reformatted with 'gofmt'

This commit is contained in:
Jim Zhang 2018-04-19 15:02:05 -04:00
parent c535103027
commit 51274bd368
1 changed files with 17 additions and 17 deletions

View File

@ -235,23 +235,23 @@ func CreateConsensusEngine(ctx *node.ServiceContext, config *Config, chainConfig
}
// Otherwise assume proof-of-work
switch {
case config.PowFake:
log.Warn("Ethash used in fake mode")
return ethash.NewFaker()
case config.PowTest:
log.Warn("Ethash used in test mode")
return ethash.NewTester()
case config.PowShared:
log.Warn("Ethash used in shared mode")
return ethash.NewShared()
default:
// For Quorum, Raft run as a separate service, so
// the Ethereum service still needs a consensus engine,
// use the consensus with the lightest overhead
log.Warn("Ethash used in full fake mode")
return ethash.NewFullFaker()
}
switch {
case config.PowFake:
log.Warn("Ethash used in fake mode")
return ethash.NewFaker()
case config.PowTest:
log.Warn("Ethash used in test mode")
return ethash.NewTester()
case config.PowShared:
log.Warn("Ethash used in shared mode")
return ethash.NewShared()
default:
// For Quorum, Raft run as a separate service, so
// the Ethereum service still needs a consensus engine,
// use the consensus with the lightest overhead
log.Warn("Ethash used in full fake mode")
return ethash.NewFullFaker()
}
}
// APIs returns the collection of RPC services the ethereum package offers.