From 773a4bfc81cc94bb3bb66427a1e88db0a34bf7e5 Mon Sep 17 00:00:00 2001 From: Tanmay Date: Fri, 27 Sep 2024 15:30:52 +0530 Subject: [PATCH] add comments --- e2e/runner/zeta.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/e2e/runner/zeta.go b/e2e/runner/zeta.go index 2267e3d013..b828a056d7 100644 --- a/e2e/runner/zeta.go +++ b/e2e/runner/zeta.go @@ -18,6 +18,8 @@ import ( "github.com/zeta-chain/node/x/crosschain/types" ) +// WaitForBlocks waits for a specific number of blocks to be generated +// The parameter n is the number of blocks to wait for func (r *E2ERunner) WaitForBlocks(n int64) { height, err := r.CctxClient.LastZetaHeight(r.Ctx, &types.QueryLastZetaHeightRequest{}) if err != nil { @@ -33,6 +35,8 @@ func (r *E2ERunner) WaitForBlocks(n int64) { require.NoError(r, err, "failed to wait for %d blocks", n) } +// WaitForTssGeneration waits for a specific number of TSS to be generated +// The parameter n is the number of TSS to wait for func (r *E2ERunner) WaitForTssGeneration(n int64) { call := func() error { return retry.Retry(r.waitForTssGeneration(n))