Skip to content

Commit 533cec2

Browse files
committed
Wait for producer declaration
1 parent a1750eb commit 533cec2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/waitForInitialBlocks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const waitForInitialBlocks = async (maxAttempts = 10): Promise<void> => {
1313
attempts++
1414
try {
1515
const [block] = (await viewer.currentBlock()) ?? []
16-
if (isDefined(block?.block)) {
16+
if (isDefined(block?.block) && block.block > 0) {
1717
return // Success
1818
}
1919
} catch {}

0 commit comments

Comments
 (0)