chg: remove unwanted ctx

This commit is contained in:
Jaynti Kanani 2020-11-14 14:25:42 +05:30
parent 706e2881e2
commit c6324827c3
No known key found for this signature in database
GPG key ID: 4396982C976BAE5E
2 changed files with 2 additions and 2 deletions

View file

@ -52,7 +52,7 @@ func getGenesis(genesisPath string) (*core.Genesis, error) {
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-")
if err != nil {
Fatalf("failed to create temporary keystore: %v", err)

View file

@ -1816,7 +1816,7 @@ func MakeChain(ctx *cli.Context, stack *node.Node, readOnly bool) (chain *core.B
if config.Clique != nil {
engine = clique.New(config.Clique, chainDb)
} else if config.Bor != nil {
engine = createBorEthereum(ctx, &eth.Config{
engine = createBorEthereum(&eth.Config{
Genesis: genesis,
HeimdallURL: ctx.GlobalString(HeimdallURLFlag.Name),
WithoutHeimdall: ctx.GlobalBool(WithoutHeimdallFlag.Name),