bor: integration cmd support

This commit is contained in:
alex.sharov 2023-08-23 12:07:36 +07:00
parent 523504c557
commit 02b7c28a94

View File

@ -1602,6 +1602,7 @@ func initConsensusEngine(cc *chain2.Config, dir string, db kv.RwDB, blockReader
consensusConfig = &config.Aura consensusConfig = &config.Aura
} else if cc.Bor != nil { } else if cc.Bor != nil {
consensusConfig = &config.Bor consensusConfig = &config.Bor
config.HeimdallURL = HeimdallURL
if !config.WithoutHeimdall { if !config.WithoutHeimdall {
if config.HeimdallgRPCAddress != "" { if config.HeimdallgRPCAddress != "" {
heimdallClient = heimdallgrpc.NewHeimdallGRPCClient(config.HeimdallgRPCAddress, logger) heimdallClient = heimdallgrpc.NewHeimdallGRPCClient(config.HeimdallgRPCAddress, logger)