Skip to content

Commit

Permalink
chg: use new bor flags
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkanani committed Nov 18, 2020
1 parent 4c5f815 commit 8c7cf1d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/geth/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@ func makeConfigNode(ctx *cli.Context) (*node.Node, gethConfig) {
}
utils.SetShhConfig(ctx, stack)

// Set Bor config flags
utils.SetBorConfig(ctx, &cfg.Eth)

return stack, cfg
}

Expand Down
6 changes: 6 additions & 0 deletions cmd/utils/bor_flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ func getGenesis(genesisPath string) (*core.Genesis, error) {
return genesis, nil
}

// SetBorConfig sets bor config
func SetBorConfig(ctx *cli.Context, cfg *eth.Config) {
cfg.HeimdallURL = ctx.GlobalString(HeimdallURLFlag.Name)
cfg.WithoutHeimdall = ctx.GlobalBool(WithoutHeimdallFlag.Name)
}

// CreateBorEthereum Creates bor ethereum object from eth.Config
func CreateBorEthereum(cfg *eth.Config) *eth.Ethereum {
workspace, err := ioutil.TempDir("", "bor-command-node-")
Expand Down

0 comments on commit 8c7cf1d

Please sign in to comment.