Skip to content

Commit

Permalink
fix: add squid height check offset
Browse files Browse the repository at this point in the history
  • Loading branch information
belopash committed Jun 11, 2024
1 parent f7735c3 commit ba89d1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useSquidNetworkHeightHooks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export function SquidHeightProvider({ children }: PropsWithChildren) {
useEffect(() => {
if (isLoading) return;

if (chainHeight && BigInt(currentHeight) < chainHeight && maxWaitHeight < chainHeight) {
if (chainHeight && BigInt(currentHeight) < chainHeight - 5n && maxWaitHeight < chainHeight) {
setWaitHeight(chainHeight);
}
}, [chainHeight, currentHeight, heightHooks, isLoading, maxWaitHeight, setWaitHeight]);
Expand Down

0 comments on commit ba89d1e

Please sign in to comment.