From 12097bcdbca7ce7ffcaed4190988fcb0bece6890 Mon Sep 17 00:00:00 2001 From: rabi-siddique Date: Fri, 18 Oct 2024 14:01:19 +0500 Subject: [PATCH] chore: wait for 1000 blocks --- packages/agoric-cli/tools/getting-started.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/agoric-cli/tools/getting-started.js b/packages/agoric-cli/tools/getting-started.js index c20767ab9ca..158bee1cc58 100644 --- a/packages/agoric-cli/tools/getting-started.js +++ b/packages/agoric-cli/tools/getting-started.js @@ -172,7 +172,7 @@ export const gettingStartedWorkflowTest = async (t, options = {}) => { // ============== // wait for the chain to start - let lastKnownBlockHeight = 0n; + let lastKnownBlockHeight = 1000n; for (;;) { try { const currentHeight = await getLatestBlockHeight( @@ -181,8 +181,8 @@ export const gettingStartedWorkflowTest = async (t, options = {}) => { if (currentHeight > lastKnownBlockHeight) { const earlierHeight = lastKnownBlockHeight; lastKnownBlockHeight = currentHeight; - if (earlierHeight > 0n && currentHeight > earlierHeight) { - // We've had at least one block produced. + if (earlierHeight > 1000n && currentHeight > earlierHeight) { + // We've had at least 1000 blocks produced. break; } }