fix some erros

This commit is contained in:
Ubuntu 2020-02-17 14:59:14 +00:00
parent eb6cb3dbf9
commit ae33b4b408
2 changed files with 4 additions and 4 deletions

View file

@ -91,9 +91,9 @@ func runWizard(c *cli.Context) error {
preFundedAccounts := c.String("preFundedAccounts") preFundedAccounts := c.String("preFundedAccounts")
preCmpAddOneWei := c.String("preCmpAddressWithOneWei") preCmpAddOneWei := c.String("preCmpAddressWithOneWei")
networkID := c.Uint64("networkID") networkID := c.Uint64("networkID")
nonInteract := 0
nonInteract := network != "" && consensusType != "" && blocksTime > 0 && sealAccounts != "" && preFundedAccounts != "" && preCmpAddOneWei != "" && networkID > 0 if network != "" && consensusType != "" && blocksTime > 0 && sealAccounts != "" && preFundedAccounts != "" && preCmpAddOneWei != "" && networkID > 0
-------nonInteract = 1
makeWizard(network, consensusType, blocksTime, sealAccounts, preFundedAccounts, preCmpAddOneWei, networkID, nonInteract).run() makeWizard(network, consensusType, blocksTime, sealAccounts, preFundedAccounts, preCmpAddOneWei, networkID, nonInteract).run()
return nil return nil
} }

View file

@ -77,7 +77,7 @@ type wizard struct {
services map[string][]string // Ethereum services known to be running on servers services map[string][]string // Ethereum services known to be running on servers
in *bufio.Reader // Wrapper around stdin to allow reading user input in *bufio.Reader // Wrapper around stdin to allow reading user input
lock sync.Mutex // Lock to protect configs during concurrent service discovery lock sync.Mutex // Lock to protect configs during concurrent service discovery
consensusType string consensusType string
blocksTime uint64 blocksTime uint64
sealAccounts string sealAccounts string