good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit 8c7cf1d6 authored by Jaynti Kanani's avatar Jaynti Kanani
Browse files

chg: use new bor flags

parent 4c5f8153
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
......
......@@ -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-")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment