Skip to content

Commit

Permalink
chg: log heimdallURL
Browse files Browse the repository at this point in the history
  • Loading branch information
marcello33 committed Nov 15, 2023
1 parent 384383c commit 778fb95
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/utils/bor_flags.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package utils

import (
"fmt"
"os"

"github.com/urfave/cli/v2"
Expand Down Expand Up @@ -72,6 +73,8 @@ func SetBorConfig(ctx *cli.Context, cfg *eth.Config) {
cfg.RunHeimdall = ctx.Bool(RunHeimdallFlag.Name)
cfg.RunHeimdallArgs = ctx.String(RunHeimdallArgsFlag.Name)
cfg.UseHeimdallApp = ctx.Bool(UseHeimdallAppFlag.Name)

fmt.Println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> SetBorConfig: " , cfg.HeimdallURL)
}

// CreateBorEthereum Creates bor ethereum object from eth.Config
Expand Down
3 changes: 3 additions & 0 deletions cmd/utils/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -2302,6 +2302,9 @@ func MakeChain(ctx *cli.Context, stack *node.Node, readonly bool) (*core.BlockCh
RunHeimdallArgs: ctx.String(RunHeimdallArgsFlag.Name),
UseHeimdallApp: ctx.Bool(UseHeimdallAppFlag.Name),
}

fmt.Println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> MakeChain: " , configs.HeimdallURL)

_ = CreateBorEthereum(configs)
engine, err := ethconfig.CreateConsensusEngine(config, configs, chainDb, nil)
if err != nil {
Expand Down
2 changes: 2 additions & 0 deletions eth/ethconfig/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package ethconfig

import (
"errors"
"fmt"
"math/big"
"time"

Expand Down Expand Up @@ -232,6 +233,7 @@ func CreateConsensusEngine(chainConfig *params.ChainConfig, ethConfig *Config, d
heimdallClient = heimdallgrpc.NewHeimdallGRPCClient(ethConfig.HeimdallgRPCAddress)
} else {
heimdallClient = heimdall.NewHeimdallClient(ethConfig.HeimdallURL)
fmt.Println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> CreateConsensusEngine: " , ethConfig.HeimdallURL)
}

return bor.New(chainConfig, db, blockchainAPI, spanner, heimdallClient, genesisContractsClient, false), nil
Expand Down
2 changes: 2 additions & 0 deletions internal/cli/server/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -920,6 +920,8 @@ func (c *Config) buildEth(stack *node.Node, accountManager *accounts.Manager) (*
n.RunHeimdallArgs = c.Heimdall.RunHeimdallArgs
n.UseHeimdallApp = c.Heimdall.UseHeimdallApp

fmt.Println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> buildEth: " , n.HeimdallURL)

// Developer Fake Author for producing blocks without authorisation on bor consensus
n.DevFakeAuthor = c.DevFakeAuthor

Expand Down

0 comments on commit 778fb95

Please sign in to comment.