Skip to content

Commit

Permalink
chore(e2e): use first archive node (#2582)
Browse files Browse the repository at this point in the history
Switches relayer to use archive1 to relieve cpu utilization on archive2

issue: none
  • Loading branch information
kc1116 authored Nov 27, 2024
1 parent da1783e commit cb1b529
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions e2e/types/testnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,13 @@ func (t Testnet) BroadcastNode() *e2e.Node {
// ArchiveNode returns the last node running in ModeArchive.
// Note that this is different from the CometBFT Testnet.ArchiveNodes() method.
func (t Testnet) ArchiveNode() (*e2e.Node, bool) {
var last *e2e.Node
for _, node := range t.Nodes {
if node.Mode == ModeArchive {
last = node
return node, true
}
}

return last, last != nil
return nil, false
}

// HasPerturbations returns whether the network has any perturbations.
Expand Down

0 comments on commit cb1b529

Please sign in to comment.