-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RPC Sync Delay: SubQuery Indexer Node Falling Behind Current Block Height (Up to 30-Minute Lag) #756
Comments
May I ask when this issue occurred ? |
Hey @nitishpatel perhaps there is some misconception about how the real time indexing works. SubQuery provides real time indexing of unconfirmed data directly from the RPC endpoint that solves this problem. SubQuery takes the most probabilistic data before it is confirmed to provide to the app. In the unlikely event that the data isn’t confirmed and a reorg occurs, SubQuery will automatically roll back and correct its mistakes quickly and efficiently - resulting in an insanely quick user experience for your customers. To control this feature, please adjust the I suspect the default number of confirmations for your chain is 300 blocks, by controlling the |
Hey @jamesbayly , I will check out with the --block-confirmations flag, However would be good to know if there is something changed recently on the apothem network, because subquery seemed to sync just fine about 8 days back, I started facing the issue post apothem was down for 2 days |
We'll check into it. Can you confirm what version of |
The docker image being used is 5.1.4 |
@nitishpatel Did you tested with RPC |
@gzliudan We were using that but then it was going down in between and the also got delisted from https://chainlist.org/?search=apothem |
@jamesbayly How can we find out what is the default confirmation number? |
For EVM networks, it is 200 blocks |
Issue:
The RPC used for running a SubQuery indexer node is blocks behind the actual current block height and is taking up to 30 minutes to catch up.
Steps to Reproduce:
Clone the Repository:
Navigate to the directory:
cd ethereum-subql-starter/XDC/xdc-apothem-starter/
Install Dependencies:
Update the Configuration:
Open
project.ts
and update thestartBlock
to something recent:Also, set the endpoint to:
Observations:
When unfinalized blocks are not allowed (setting disabled), the indexer syncs 300+ blocks behind.
After allowing unfinalized blocks, the indexer syncs in 30 seconds as expected.
Expected Behavior:
The indexer should sync with the current block height within 20 seconds, as it did previously, regardless of the unfinalized block setting.
Environment Details:
RPC: https://erpc.apothem.network
The text was updated successfully, but these errors were encountered: