Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/contractcmd/deploy_validator_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func newDeployValidatorManagerCmd() *cobra.Command {
Short: "Deploy a Validator Manager into a given Network and Blockchain",
Long: `Deploy a Validator Manager, a Proxy, and a Proxy Admin, into a given Network and Blockchain.
If a proxy is provided, configures it to point to the deployed validator manager.
Note: This command deploys smart contracts for a validator manager, but does not initializate it to start operating on a given
Note: This command deploys smart contracts for a validator manager, but does not initialize it to start operating on a given
L1. For that, you need to call 'avalanche contract initValidatorManager'.
`,
RunE: deployValidatorManager,
Expand Down
2 changes: 1 addition & 1 deletion cmd/nodecmd/validate_primary.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ func validatePrimaryNetwork(_ *cobra.Command, args []string) error {
if err != nil {
return err
}
hosts := clusterConfig.GetValidatorHosts(allHosts) // exlude api nodes
hosts := clusterConfig.GetValidatorHosts(allHosts) // exclude api nodes
defer node.DisconnectHosts(hosts)

// TODO: will estimate fee in subsecuent PR
Expand Down
2 changes: 1 addition & 1 deletion cmd/nodecmd/validate_subnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func validateSubnet(_ *cobra.Command, args []string) error {
if err != nil {
return err
}
hosts := clusterConfig.GetValidatorHosts(allHosts) // exlude api nodes
hosts := clusterConfig.GetValidatorHosts(allHosts) // exclude api nodes
if len(validators) != 0 {
hosts, err = filterHosts(hosts, validators)
if err != nil {
Expand Down
8 changes: 4 additions & 4 deletions cmd/nodecmd/wiz.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ func wiz(cmd *cobra.Command, args []string) error {
if !ok {
return fmt.Errorf("cluster %s does not exist", clusterName)
}
hosts := cluster.GetValidatorHosts(allHosts) // exlude api nodes
hosts := cluster.GetValidatorHosts(allHosts) // exclude api nodes
_, err = filterHosts(hosts, validators)
if err != nil {
return err
Expand Down Expand Up @@ -678,7 +678,7 @@ func checkRPCCompatibility(
if err != nil {
return err
}
hosts := clusterConfig.GetValidatorHosts(allHosts) // exlude api nodes
hosts := clusterConfig.GetValidatorHosts(allHosts) // exclude api nodes
if len(validators) != 0 {
hosts, err = filterHosts(hosts, validators)
if err != nil {
Expand All @@ -705,7 +705,7 @@ func waitForSubnetValidators(
if err != nil {
return err
}
hosts := clusterConfig.GetValidatorHosts(allHosts) // exlude api nodes
hosts := clusterConfig.GetValidatorHosts(allHosts) // exclude api nodes
if len(validators) != 0 {
hosts, err = filterHosts(hosts, validators)
if err != nil {
Expand Down Expand Up @@ -772,7 +772,7 @@ func waitForClusterSubnetStatus(
if err != nil {
return err
}
hosts := cluster.GetValidatorHosts(allHosts) // exlude api nodes
hosts := cluster.GetValidatorHosts(allHosts) // exclude api nodes
if len(validators) != 0 {
hosts, err = filterHosts(hosts, validators)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion docs/ledger-simulator.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ The test should call `utils.StartLedgerSim(numApprovals, ledgerSeed, showStdout)

- number of txs to be approved by the ledger
- seed for the ledger
- wether to show stdout
- whether to show stdout

The function returns two channels:

Expand Down
2 changes: 1 addition & 1 deletion pkg/binutils/binaries.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ func extractTarReader(gzipReader io.Reader, targetDir string) error {
if _, err := io.CopyN(f, tarReader, maxCopy); err != nil && !errors.Is(err, io.EOF) {
return fmt.Errorf("failed writing tar entry contents to disk: %w", err)
}
// manually close here after each file operation; defering would cause each file close
// manually close here after each file operation; deferring would cause each file close
// to wait until all operations have completed.
if err := f.Close(); err != nil {
return err
Expand Down
6 changes: 3 additions & 3 deletions pkg/localnet/tmpnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -1064,7 +1064,7 @@ func TmpNetStartNode(
}
_, ok := node.Flags[config.BootstrapIPsKey]
if !ok && !IsPublicNetwork(networkID) {
// it does not have boostrappers set, and it is also not a public network node,
// it does not have bootstrappers set, and it is also not a public network node,
// so we need to set bootstrappers from the custom network itself
bootstrapIPs, bootstrapIDs, err := GetTmpNetBootstrappers(network.Dir, node.NodeID)
if err != nil {
Expand All @@ -1084,7 +1084,7 @@ func TmpNetStartNode(
return nil
}

// Indicates wether a given network ID is for public network
// Indicates whether a given network ID is for public network
func IsPublicNetwork(networkID uint32) bool {
return networkID == avagoconstants.FujiID || networkID == avagoconstants.MainnetID
}
Expand Down Expand Up @@ -1126,7 +1126,7 @@ func GetTmpNetNetworkWithURIFix(networkDir string) (*tmpnet.Network, error) {
return network, nil
}

// Get all node URIs of the network. transformates URIs
// Get all node URIs of the network. transforms URIs
func GetTmpNetNodeURIsWithFix(
networkDir string,
) ([]string, error) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/node/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ func WaitForHealthyCluster(
if err != nil {
return err
}
hosts := cluster.GetValidatorHosts(allHosts) // exlude api nodes
hosts := cluster.GetValidatorHosts(allHosts) // exclude api nodes
defer DisconnectHosts(hosts)
startTime := time.Now()
spinSession := ux.NewUserSpinner()
Expand Down
6 changes: 3 additions & 3 deletions pkg/vm/evm_prompts.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ func PromptSubnetEVMGenesisParams(
return params, tokenSymbol, nil
}

// prompts for wether to use a remote or native gas token
// prompts for whether to use a remote or native gas token
func promptGasTokenKind(
app *application.Avalanche,
defaultsKind DefaultsKind,
Expand Down Expand Up @@ -292,7 +292,7 @@ func promptGasTokenKind(
return params, nil
}

// prompts for wether to use defaults to build the config
// prompts for whether to use defaults to build the config
func PromptDefaults(
app *application.Avalanche,
defaultsKind DefaultsKind,
Expand Down Expand Up @@ -746,7 +746,7 @@ func promptFeeConfig(
// if useICM is defined, will enable/disable ICM based on it
// is useDefaults is true, will enable ICM
// if using external gas token, will assume ICM to be enabled
// if other cases, prompts the user for wether to enable ICM
// if other cases, prompts the user for whether to enable ICM
func PromptInterop(
app *application.Avalanche,
useICMFlag *bool,
Expand Down