From 5016c1402190f3f598475b16c1644d88f11eaca6 Mon Sep 17 00:00:00 2001 From: Alexander Filippov Date: Tue, 16 Apr 2024 13:49:06 +0300 Subject: [PATCH] Fix prover sync bug --- zp-relayer/pool/BasePool.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zp-relayer/pool/BasePool.ts b/zp-relayer/pool/BasePool.ts index 8165712f..bb53805d 100644 --- a/zp-relayer/pool/BasePool.ts +++ b/zp-relayer/pool/BasePool.ts @@ -185,7 +185,7 @@ export abstract class BasePool { async syncStateFromIndexer(indexerUrl: string) { let txs = [] - let commitIndex = this.optimisticState.getNextIndex() + let commitIndex = this.optimisticState.getNextIndex() / OUTPLUSONE do { txs = await this.fetchTransactionsFromIndexer(indexerUrl, this.optimisticState.getNextIndex(), 200) for (const tx of txs) {