Fixed issue Config & consolecmd | File Modified

This commit is contained in:
AnilChinchawale 2018-12-31 23:29:39 +05:30
parent 05a7433768
commit 15e76b17de
2 changed files with 5 additions and 18 deletions

View file

@ -157,19 +157,6 @@ func makeConfigNode(ctx *cli.Context) (*node.Node, XDCConfig) {
common.IsTestnet = true 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 // read passwords from environment
passwords := []string{} passwords := []string{}
for _, env := range cfg.Account.Passwords { for _, env := range cfg.Account.Passwords {