Skip to content
This repository was archived by the owner on Aug 2, 2021. It is now read-only.

Commit 820b66c

Browse files
committed
network/simulation: change PropertyBootnode to const
1 parent 453212c commit 820b66c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

network/simulation/node.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,15 @@ import (
3535
"github.com/ethersphere/swarm/network"
3636
)
3737

38-
var (
39-
BucketKeyBzzPrivateKey BucketKey = "bzzprivkey"
40-
38+
const (
4139
// PropertyBootnode is a property string for NodeConfig, representing that a node is a bootnode
4240
PropertyBootnode = "bootnode"
4341
)
4442

43+
var (
44+
BucketKeyBzzPrivateKey BucketKey = "bzzprivkey"
45+
)
46+
4547
// NodeIDs returns NodeIDs for all nodes in the network.
4648
func (s *Simulation) NodeIDs() (ids []enode.ID) {
4749
nodes := s.Net.GetNodes()

0 commit comments

Comments
 (0)