Skip to content

Commit

Permalink
Waiting loadtest to pass block 0
Browse files Browse the repository at this point in the history
  • Loading branch information
jcortejoso committed Jul 14, 2023
1 parent 2713dfa commit a829487
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/celotool/src/lib/geth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,7 @@ export async function faucetLoadTestThreads(
console.info(`Addind account ${fundingAddress} to kit`)
kit.defaultAccount = privateKeyToAddress(privateKey)
const sleepTime = 5000
while (await kit.connection.isSyncing()) {
while ((await kit.connection.isSyncing()) || (await kit.connection.getBlockNumber()) < 1) {
console.info(`Sleeping ${sleepTime}ms while waiting for web3Provider to be synced.`)
await sleep(sleepTime)
}
Expand Down

0 comments on commit a829487

Please sign in to comment.