mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
fix some erros
This commit is contained in:
parent
eb6cb3dbf9
commit
ae33b4b408
2 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue