Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(e2e): use first archive #2583

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading