From 15e76b17de79682fcd48b289842b90e541686cab Mon Sep 17 00:00:00 2001 From: AnilChinchawale Date: Mon, 31 Dec 2018 23:29:39 +0530 Subject: [PATCH] Fixed issue Config & consolecmd | File Modified --- cmd/XDC/config.go | 15 +-------------- cmd/XDC/consolecmd.go | 8 ++++---- 2 files changed, 5 insertions(+), 18 deletions(-) diff --git a/cmd/XDC/config.go b/cmd/XDC/config.go index c559dffd61..deaa768dfb 100644 --- a/cmd/XDC/config.go +++ b/cmd/XDC/config.go @@ -157,19 +157,6 @@ func makeConfigNode(ctx *cli.Context) (*node.Node, XDCConfig) { common.IsTestnet = true } - // Check rollback hash exist. - if rollbackHash := ctx.GlobalString(utils.RollbackFlag.Name); rollbackHash != "" { - common.RollbackHash = common.HexToHash(rollbackHash) - } - - // Check GasPrice - common.MinGasPrice = common.DefaultMinGasPrice - if ctx.GlobalIsSet(utils.GasPriceFlag.Name) { - if gasPrice := int64(ctx.GlobalInt(utils.GasPriceFlag.Name)); gasPrice > common.DefaultMinGasPrice { - common.MinGasPrice = gasPrice - } - } - // read passwords from environment passwords := []string{} for _, env := range cfg.Account.Passwords { @@ -269,4 +256,4 @@ func dumpConfig(ctx *cli.Context) error { io.WriteString(os.Stdout, comment) os.Stdout.Write(out) return nil -} \ No newline at end of file +} diff --git a/cmd/XDC/consolecmd.go b/cmd/XDC/consolecmd.go index 768ce5f5a1..ff5cdfc892 100644 --- a/cmd/XDC/consolecmd.go +++ b/cmd/XDC/consolecmd.go @@ -77,8 +77,8 @@ JavaScript API. See https://github.com/ethereum/go-ethereum/wiki/JavaScript-Cons // same time. func localConsole(ctx *cli.Context) error { // Create and start the node based on the CLI flags - node,cfg := makeFullNode(ctx) - startNode(ctx, node,cfg) + node, cfg := makeFullNode(ctx) + startNode(ctx, node, cfg) defer node.Stop() // Attach to the newly started node and start the JavaScript console @@ -179,8 +179,8 @@ func dialRPC(endpoint string) (*rpc.Client, error) { // everything down. func ephemeralConsole(ctx *cli.Context) error { // Create and start the node based on the CLI flags - node,cfg := makeFullNode(ctx) - startNode(ctx, node,cfg) + node, cfg := makeFullNode(ctx) + startNode(ctx, node, cfg) defer node.Stop() // Attach to the newly started node and start the JavaScript console