|
|
@ -32,8 +32,9 @@ func InjectEvidence(testnet *e2e.Testnet, amount int) error { |
|
|
|
// select a random node
|
|
|
|
var targetNode *e2e.Node |
|
|
|
|
|
|
|
for i := 0; i < len(testnet.Nodes)-1; i++ { |
|
|
|
targetNode = testnet.Nodes[rand.Intn(len(testnet.Nodes))] // nolint: gosec
|
|
|
|
for _, idx := range rand.Perm(len(testnet.Nodes)) { |
|
|
|
targetNode = testnet.Nodes[idx] |
|
|
|
|
|
|
|
if targetNode.Mode == e2e.ModeSeed { |
|
|
|
targetNode = nil |
|
|
|
continue |
|
|
|