Skip to content

Commit a54da74

Browse files
committed
fixup: s/id/ID/
1 parent 2873d56 commit a54da74

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

tests/e2e/p/permissionless_subnets.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ var _ = e2e.DescribePChain("[Permissionless Subnets]", func() {
6262
xChainID := xWallet.BlockchainID()
6363

6464
var validatorID ids.NodeID
65-
ginkgo.By("retrieving the node id of a primary network validator", func() {
65+
ginkgo.By("retrieving the node ID of a primary network validator", func() {
6666
// TODO(marun) What should be the timeout here?
6767
ctx, cancel := context.WithTimeout(context.Background(), time.Second*5)
6868
validatorIDs, err := pChainClient.SampleValidators(ctx, ids.ID{}, 1)

tests/e2e/p/workflow.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ var _ = e2e.DescribePChain("[Workflow]", func() {
9696
validatorStartTimeDiff := 30 * time.Second
9797
vdrStartTime := time.Now().Add(validatorStartTimeDiff)
9898

99-
// Use a random node id to ensure that repeated test runs
99+
// Use a random node ID to ensure that repeated test runs
100100
// will succeed against a persistent network.
101101
randomShortID, _ := ids.ToShortID(utils.RandomBytes(20))
102102
validatorID := ids.NodeID(randomShortID)

tests/fixture/testnet/config.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ func (c *NetworkConfig) PopulateNetworkConfig(networkID uint32, validatorIDs []i
8080

8181
if networkID == 0 {
8282
// TODO(marun)
83-
// - Randomly generate the network id (making sure it isn't a reserved ID)
84-
// - Use only the network id (without a datetime suffix) on the filesystem
85-
// - Support referring to a network by just the id against a default path
86-
// - e.g. ~/.testnetctl/networks/[network id]
83+
// - Randomly generate the network ID (making sure it isn't a reserved ID)
84+
// - Use only the network ID (without a datetime suffix) on the filesystem
85+
// - Support referring to a network by just the ID against a default path
86+
// - e.g. ~/.testnetctl/networks/[network ID]
8787
networkID = uint32(1337)
8888
}
8989

@@ -201,13 +201,13 @@ func (nc *NodeConfig) EnsureStakingKeypair() error {
201201

202202
err = nc.EnsureNodeID()
203203
if err != nil {
204-
return fmt.Errorf("failed to derive a node id: %w", err)
204+
return fmt.Errorf("failed to derive a node ID: %w", err)
205205
}
206206

207207
return nil
208208
}
209209

210-
// Attempt to derive the node id from the node configuration.
210+
// Attempt to derive the node ID from the node configuration.
211211
func (nc *NodeConfig) EnsureNodeID() error {
212212
flags := nc.Flags
213213
keyKey := cfg.StakingTLSKeyContentKey
@@ -344,7 +344,7 @@ func NewTestGenesis(
344344
return nil, fmt.Errorf("failed to format reward address: %w", err)
345345
}
346346

347-
// Configure provided validator node ids as initial stakers
347+
// Configure provided validator node IDs as initial stakers
348348
for _, validatorID := range validatorIDs {
349349
config.InitialStakers = append(
350350
config.InitialStakers,

tests/fixture/testnet/local/network.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ func (ln *LocalNetwork) PopulateLocalNetworkConfig(networkID uint32, nodeCount i
140140
ln.Nodes = nodes
141141
}
142142

143-
// Ensure each node has keys and an associated node id
143+
// Ensure each node has keys and an associated node ID
144144
for _, node := range ln.Nodes {
145145
err := node.EnsureKeys()
146146
if err != nil {

0 commit comments

Comments
 (0)