Skip to content

Commit

Permalink
Typos: Correct some spelling mistakes (#6001)
Browse files Browse the repository at this point in the history
  • Loading branch information
jannotti committed May 14, 2024
1 parent 299b309 commit a3efb56
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 23 deletions.
4 changes: 2 additions & 2 deletions cmd/netgoal/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,9 @@ func runBuildNetwork() error {
return fmt.Errorf("error resolving bootstrap file: %v", err)
}
net.BootstrappedNet = fileTemplate
net.SetUseBoostrappedFiles(bootstrapLoadingFile)
net.SetUseBootstrappedFiles(bootstrapLoadingFile)
} else {
net.SetUseBoostrappedFiles(false)
net.SetUseBootstrappedFiles(false)
}

net.SetUseExistingGenesisFiles(networkUseGenesisFiles)
Expand Down
22 changes: 11 additions & 11 deletions netdeploy/remote/deployedNetwork.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@ type DeployedNetworkConfig struct {

// DeployedNetwork represents the complete configuration specification for a deployed network
type DeployedNetwork struct {
useExistingGenesis bool
createBoostrappedNetwork bool
GenesisData gen.GenesisData
Topology topology
Hosts []HostConfig
BootstrappedNet BootstrappedNetwork
useExistingGenesis bool
createBootstrappedNetwork bool
GenesisData gen.GenesisData
Topology topology
Hosts []HostConfig
BootstrappedNet BootstrappedNetwork
}

type netState struct {
Expand Down Expand Up @@ -253,12 +253,12 @@ func (cfg *DeployedNetwork) SetUseExistingGenesisFiles(useExisting bool) bool {
return old
}

// SetUseBoostrappedFiles sets the override flag indicating we should use existing genesis
// SetUseBootstrappedFiles sets the override flag indicating we should use existing genesis
// files instead of generating new ones. This is useful for permanent networks like devnet and testnet.
// Returns the previous value.
func (cfg *DeployedNetwork) SetUseBoostrappedFiles(boostrappedFile bool) bool {
old := cfg.createBoostrappedNetwork
cfg.createBoostrappedNetwork = boostrappedFile
func (cfg *DeployedNetwork) SetUseBootstrappedFiles(bootstrappedFile bool) bool {
old := cfg.createBootstrappedNetwork
cfg.createBootstrappedNetwork = bootstrappedFile
return old
}

Expand Down Expand Up @@ -346,7 +346,7 @@ func (cfg DeployedNetwork) BuildNetworkFromTemplate(buildCfg BuildConfig, rootDi
return
}

if cfg.createBoostrappedNetwork {
if cfg.createBootstrappedNetwork {
fmt.Println("Generating db files ")

cfg.GenerateDatabaseFiles(cfg.BootstrappedNet, genesisFolder)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
PARAMS=-w 20 -R 8 -N 20 -n 20 --npn-algod-nodes 10 --node-template node.json --relay-template relay.json --non-participating-node-template nonPartNode.json --last-part-key-round 50000
FILEPARAMS=--rounds 1600 --ntxns 20000 --naccounts 30000000 --nassets 20000 --napps 20000 --wallet-name "wallet1" --bal 50000000 --bal 50000001 --deterministic

all: net.json genesis.json topology.json boostrappedFile.json
all: net.json genesis.json topology.json bootstrappedFile.json

net.json: node.json nonPartNode.json ${GOPATH}/bin/netgoal Makefile
netgoal generate -t net -r /tmp/wat -o net.json ${PARAMS}
Expand All @@ -15,8 +15,8 @@ genesis.json: ${GOPATH}/bin/netgoal Makefile
topology.json: gen_topology.py
python3 gen_topology.py

boostrappedFile.json: ${GOPATH}/bin/netgoal Makefile
netgoal generate -t loadingFile -r /tmp/wat -o boostrappedFile.json ${FILEPARAMS}
bootstrappedFile.json: ${GOPATH}/bin/netgoal Makefile
netgoal generate -t loadingFile -r /tmp/wat -o bootstrappedFile.json ${FILEPARAMS}

clean:
rm -f net.json genesis.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"GenesisFile":"genesis.json",
"NetworkFile":"net.json",
"ConfigFile": "../../configs/reference.json",
"HostTemplatesFile": "../../hosttemplates/hosttemplates.json",
"TopologyFile": "topology.json",
"BootstrappedFile": "boostrappedFile.json"
"GenesisFile": "genesis.json",
"NetworkFile": "net.json",
"ConfigFile": "../../configs/reference.json",
"HostTemplatesFile": "../../hosttemplates/hosttemplates.json",
"TopologyFile": "topology.json",
"BootstrappedFile": "bootstrappedFile.json"
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# scenario1s is scenario1 but smaller, (100 nodes, 100 wallets) -> (20 nodes, 20 wallets), each algod gets single tenancy on a smaller ec2 instance
PARAMS=-w 20 -R 8 -N 20 -n 20 --npn-algod-nodes 10 --node-template node.json --relay-template relay.json --non-participating-node-template nonPartNode.json

all: net.json genesis.json topology.json boostrappedFile.json
all: net.json genesis.json topology.json bootstrappedFile.json

net.json: node.json nonPartNode.json ${GOPATH}/bin/netgoal Makefile
netgoal generate -t net -r /tmp/wat -o net.json ${PARAMS}
Expand Down

0 comments on commit a3efb56

Please sign in to comment.