diff options
Diffstat (limited to 'integration_test/node.go')
-rw-r--r-- | integration_test/node.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/integration_test/node.go b/integration_test/node.go index d66a86a..ee25b11 100644 --- a/integration_test/node.go +++ b/integration_test/node.go @@ -88,9 +88,13 @@ func NewNode( shardID = uint32(0) chainID = uint32(math.MaxUint32) governanceConfig = gov.GetConfiguration(0) - broadcastTargets = gov.GetNodeSet(0) + nodeSetKeys = gov.GetNodeSet(0) nodeID = types.NewNodeID(privateKey.PublicKey()) ) + broadcastTargets := make(map[types.NodeID]struct{}) + for _, k := range nodeSetKeys { + broadcastTargets[types.NewNodeID(k)] = struct{}{} + } hashes := common.Hashes{} for nID := range broadcastTargets { hashes = append(hashes, nID.Hash) |