Update puppeth.go

This commit is contained in:
alexwang 2020-02-13 00:14:10 +08:00 committed by GitHub
parent 37d670069b
commit c24c0614ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -89,7 +89,7 @@ func runWizard(c *cli.Context) error {
blocksTime := uint64(c.Int("blocksTime")) blocksTime := uint64(c.Int("blocksTime"))
sealAccounts := c.String("sealAccounts") sealAccounts := c.String("sealAccounts")
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 := network != "" && consensusType != "" && blocksTime > 0 && sealAccounts != "" && preFundedAccounts != "" && preCmpAddOneWei != "" && networkID > 0 nonInteract := network != "" && consensusType != "" && blocksTime > 0 && sealAccounts != "" && preFundedAccounts != "" && preCmpAddOneWei != "" && networkID > 0