From 3309da7bc8412db5c311b294df10c263b664ed5b Mon Sep 17 00:00:00 2001 From: Kevin Halliday Date: Tue, 26 Nov 2024 20:44:47 -0500 Subject: [PATCH] chore(e2e): use first archive --- e2e/types/testnet.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/e2e/types/testnet.go b/e2e/types/testnet.go index 0e04a1d20..d3f03225c 100644 --- a/e2e/types/testnet.go +++ b/e2e/types/testnet.go @@ -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.