Skip to content

Commit

Permalink
stupid me
Browse files Browse the repository at this point in the history
  • Loading branch information
yperbasis committed Dec 16, 2024
1 parent 247315a commit a38c7b8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/rpcdaemon/cli/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -943,6 +943,7 @@ func (e *remoteConsensusEngine) init(db kv.RoDB, blockReader services.FullBlockR
// TODO(yperbasis): try to unify with CreateConsensusEngine
var eng consensus.Engine
if cc.Aura != nil {
// TODO(yperbasis): support Aura remoteConsensusEngine
return errors.New("aura remoteConsensusEngine is not supported yet")
} else if cc.Clique != nil {
return errors.New("clique remoteConsensusEngine is not supported")
Expand All @@ -957,11 +958,11 @@ func (e *remoteConsensusEngine) init(db kv.RoDB, blockReader services.FullBlockR

borConfig := cc.Bor.(*borcfg.BorConfig)

e.engine = bor.NewRo(cc, borKv, blockReader,
eng = bor.NewRo(cc, borKv, blockReader,
bor.NewChainSpanner(bor.GenesisContractValidatorSetABI(), cc, true, logger),
bor.NewGenesisContractsClient(cc, borConfig.ValidatorContract, borConfig.StateReceiverContract, logger), logger)
} else {
e.engine = ethash.NewFaker()
eng = ethash.NewFaker()
}

if cc.TerminalTotalDifficulty == nil {
Expand Down

0 comments on commit a38c7b8

Please sign in to comment.