MCPcopy Create free account
hub / github.com/akash-network/node / Validator

Method Validator

testutil/network_suite.go:169–182  ·  view source on GitHub ↗
(idxT ...int)

Source from the content-addressed store, hash-verified

167}
168
169func (nts *NetworkTestSuite) Validator(idxT ...int) *network.Validator {
170 idx := 0
171 if len(idxT) != 0 {
172 if len(idxT) > 1 {
173 nts.T().Fatal("pass zero or one arguments to Validator()")
174 }
175 idx = idxT[0]
176
177 if idx > len(nts.network.Validators) {
178 nts.T().Fatal("not enough validators for each test")
179 }
180 }
181 return nts.network.Validators[idx]
182}
183
184func (nts *NetworkTestSuite) WalletNameForTest() string {
185 return fmt.Sprintf("wallet%d", nts.testIdx)

Callers 2

SetupSuiteMethod · 0.95
ClientContextMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected