Skip to content

Commit cae1f00

Browse files
committed
fix: do not apply zero hf workaround in optimistic mode
1 parent a55e122 commit cae1f00

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/services/Scanner.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,9 @@ export class Scanner {
227227
this.log.warn(
228228
`found ${zeroHFAccs.length} accounts with HF=0 on first attempt, retrying`,
229229
);
230+
if (this.config.optimistic) {
231+
return accounts;
232+
}
230233
accounts = await this.caService.getCreditAccounts(queue, blockNumber);
231234
zeroHFAccs = accounts.filter(ca => ca.healthFactor === 0n);
232235

0 commit comments

Comments
 (0)