mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 14:16:44 +00:00
chg: remove unwanted ctx
This commit is contained in:
parent
706e2881e2
commit
c6324827c3
2 changed files with 2 additions and 2 deletions
|
|
@ -52,7 +52,7 @@ func getGenesis(genesisPath string) (*core.Genesis, error) {
|
||||||
return genesis, nil
|
return genesis, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func createBorEthereum(ctx *cli.Context, cfg *eth.Config) *eth.Ethereum {
|
func createBorEthereum(cfg *eth.Config) *eth.Ethereum {
|
||||||
workspace, err := ioutil.TempDir("", "bor-command-node-")
|
workspace, err := ioutil.TempDir("", "bor-command-node-")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
Fatalf("failed to create temporary keystore: %v", err)
|
Fatalf("failed to create temporary keystore: %v", err)
|
||||||
|
|
|
||||||
|
|
@ -1816,7 +1816,7 @@ func MakeChain(ctx *cli.Context, stack *node.Node, readOnly bool) (chain *core.B
|
||||||
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 {
|
||||||
engine = createBorEthereum(ctx, ð.Config{
|
engine = createBorEthereum(ð.Config{
|
||||||
Genesis: genesis,
|
Genesis: genesis,
|
||||||
HeimdallURL: ctx.GlobalString(HeimdallURLFlag.Name),
|
HeimdallURL: ctx.GlobalString(HeimdallURLFlag.Name),
|
||||||
WithoutHeimdall: ctx.GlobalBool(WithoutHeimdallFlag.Name),
|
WithoutHeimdall: ctx.GlobalBool(WithoutHeimdallFlag.Name),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue