Skip to content

Commit

Permalink
chore: wait for 1000 blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
rabi-siddique committed Oct 18, 2024
1 parent 36d0670 commit 12097bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/agoric-cli/tools/getting-started.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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;
}
}
Expand Down

0 comments on commit 12097bc

Please sign in to comment.