mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-09 21:43:47 +00:00
Merge pull request #61 from maticnetwork/fix-heimdall-url
Use heimdall url flag while importing
This commit is contained in:
commit
7ee88de5ab
3 changed files with 3 additions and 2 deletions
|
|
@ -64,6 +64,7 @@ It expects the genesis file as argument.`,
|
||||||
ArgsUsage: "<filename> (<filename 2> ... <filename N>) <genesisPath>",
|
ArgsUsage: "<filename> (<filename 2> ... <filename N>) <genesisPath>",
|
||||||
Flags: []cli.Flag{
|
Flags: []cli.Flag{
|
||||||
utils.DataDirFlag,
|
utils.DataDirFlag,
|
||||||
|
utils.HeimdallURLFlag,
|
||||||
utils.CacheFlag,
|
utils.CacheFlag,
|
||||||
utils.SyncModeFlag,
|
utils.SyncModeFlag,
|
||||||
utils.GCModeFlag,
|
utils.GCModeFlag,
|
||||||
|
|
|
||||||
|
|
@ -151,7 +151,7 @@ func enableWhisper(ctx *cli.Context) bool {
|
||||||
|
|
||||||
func makeFullNode(ctx *cli.Context) *node.Node {
|
func makeFullNode(ctx *cli.Context) *node.Node {
|
||||||
stack, cfg := makeConfigNode(ctx)
|
stack, cfg := makeConfigNode(ctx)
|
||||||
cfg.Eth.HeimdallURL = ctx.String(utils.HeimdallURLFlag.Name)
|
cfg.Eth.HeimdallURL = ctx.GlobalString(utils.HeimdallURLFlag.Name)
|
||||||
log.Info("Connecting to heimdall service on...", "heimdallURL", cfg.Eth.HeimdallURL)
|
log.Info("Connecting to heimdall service on...", "heimdallURL", cfg.Eth.HeimdallURL)
|
||||||
utils.RegisterEthService(stack, &cfg.Eth)
|
utils.RegisterEthService(stack, &cfg.Eth)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1694,7 +1694,7 @@ func MakeChain(ctx *cli.Context, stack *node.Node) (chain *core.BlockChain, chai
|
||||||
if config.Clique != nil {
|
if config.Clique != nil {
|
||||||
engine = clique.New(config.Clique, chainDb)
|
engine = clique.New(config.Clique, chainDb)
|
||||||
} else if config.Bor != nil {
|
} else if config.Bor != nil {
|
||||||
cfg := ð.Config{Genesis: genesis}
|
cfg := ð.Config{Genesis: genesis, HeimdallURL: ctx.GlobalString(HeimdallURLFlag.Name)}
|
||||||
workspace, err := ioutil.TempDir("", "console-tester-")
|
workspace, err := ioutil.TempDir("", "console-tester-")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
Fatalf("failed to create temporary keystore: %v", err)
|
Fatalf("failed to create temporary keystore: %v", err)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue