Skip to content

Commit 669789c

Browse files
committed
debug block indexing
1 parent 8283a71 commit 669789c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/subgraph/hardhat.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const config: HardhatUserConfig = {
2323
},
2424

2525
mocha: {
26-
timeout: 1000000,
26+
timeout: 500000,
2727
},
2828
};
2929

packages/subgraph/test/helpers/helpers.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,8 @@ export const waitUntilBlockIndexed = async (txnBlockNumber: number) => {
211211
let currentBlock: number;
212212
do {
213213
currentBlock = await getCurrentBlockNumber();
214-
await asleep(50);
214+
console.log(`Waiting for subgraph... Current: ${currentBlock}, Target: ${txnBlockNumber}`);
215+
await asleep(500);
215216
} while (txnBlockNumber > currentBlock);
216217
};
217218

0 commit comments

Comments
 (0)