Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kingpinXD committed Sep 27, 2024
1 parent deb7e9e commit 773a4bf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions e2e/runner/zeta.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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))
Expand Down

0 comments on commit 773a4bf

Please sign in to comment.