@@ -80,10 +80,10 @@ func (c *NetworkConfig) PopulateNetworkConfig(networkID uint32, validatorIDs []i
80
80
81
81
if networkID == 0 {
82
82
// 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 ]
87
87
networkID = uint32 (1337 )
88
88
}
89
89
@@ -201,13 +201,13 @@ func (nc *NodeConfig) EnsureStakingKeypair() error {
201
201
202
202
err = nc .EnsureNodeID ()
203
203
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 )
205
205
}
206
206
207
207
return nil
208
208
}
209
209
210
- // Attempt to derive the node id from the node configuration.
210
+ // Attempt to derive the node ID from the node configuration.
211
211
func (nc * NodeConfig ) EnsureNodeID () error {
212
212
flags := nc .Flags
213
213
keyKey := cfg .StakingTLSKeyContentKey
@@ -344,7 +344,7 @@ func NewTestGenesis(
344
344
return nil , fmt .Errorf ("failed to format reward address: %w" , err )
345
345
}
346
346
347
- // Configure provided validator node ids as initial stakers
347
+ // Configure provided validator node IDs as initial stakers
348
348
for _ , validatorID := range validatorIDs {
349
349
config .InitialStakers = append (
350
350
config .InitialStakers ,
0 commit comments