diff --git a/cmd/puppeth/puppeth.go b/cmd/puppeth/puppeth.go index 212343b7b2..756b9e9396 100644 --- a/cmd/puppeth/puppeth.go +++ b/cmd/puppeth/puppeth.go @@ -91,9 +91,9 @@ func runWizard(c *cli.Context) error { preFundedAccounts := c.String("preFundedAccounts") preCmpAddOneWei := c.String("preCmpAddressWithOneWei") networkID := c.Uint64("networkID") - - nonInteract := network != "" && consensusType != "" && blocksTime > 0 && sealAccounts != "" && preFundedAccounts != "" && preCmpAddOneWei != "" && networkID > 0 - + nonInteract := 0 + if network != "" && consensusType != "" && blocksTime > 0 && sealAccounts != "" && preFundedAccounts != "" && preCmpAddOneWei != "" && networkID > 0 + -------nonInteract = 1 makeWizard(network, consensusType, blocksTime, sealAccounts, preFundedAccounts, preCmpAddOneWei, networkID, nonInteract).run() return nil } diff --git a/cmd/puppeth/wizard.go b/cmd/puppeth/wizard.go index dce092e341..8487215bc0 100644 --- a/cmd/puppeth/wizard.go +++ b/cmd/puppeth/wizard.go @@ -77,7 +77,7 @@ type wizard struct { services map[string][]string // Ethereum services known to be running on servers 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 blocksTime uint64 sealAccounts string