Skip to content
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

Fix for SVM polling crashes #366

Merged
merged 4 commits into from
Jan 15, 2025
Merged

Fix for SVM polling crashes #366

merged 4 commits into from
Jan 15, 2025

Conversation

abernatskiy
Copy link
Contributor

@abernatskiy abernatskiy commented Jan 15, 2025

Squids indexing Soon Mainnet, an SVM chain, are crashing with

AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:

                                     (0, assert_1.default)(prevSlot == null || prevSlot < block[0])

                                       at PollStream.checkChain (/home/abernatskiy/soon-nft-sale-index/node_modules/@subsquid/solana-rpc/lib/ingest/poll.js:127:38)
                                       at PollStream.trimInvalidTail (/home/abernatskiy/soon-nft-sale-index/node_modules/@subsquid/solana-rpc/lib/ingest/poll.js:110:24)
                                       at PollStream.next (/home/abernatskiy/soon-nft-sale-index/node_modules/@subsquid/solana-rpc/lib/ingest/poll.js:42:18)
                                       at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
                                       at async ColdIngest.serialFetch (/home/abernatskiy/soon-nft-sale-index/node_modules/@subsquid/solana-rpc/lib/ingest/cold.js:116:26)
                                       at async ColdIngest.jobs (/home/abernatskiy/soon-nft-sale-index/node_modules/@subsquid/solana-rpc/lib/ingest/cold.js:98:21)
                                       at async map (/home/abernatskiy/soon-nft-sale-index/node_modules/@subsquid/solana-rpc/node_modules/@subsquid/util-internal/lib/async.js:169:24)
                                       generatedMessage: true
                                       code: ERR_ASSERTION
                                       actual: false
                                       expected: true
                                       operator: ==

This seems to fix it.

@abernatskiy abernatskiy requested a review from eldargab January 15, 2025 01:04
Copy link
Collaborator

@eldargab eldargab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the fix is correct. Please add a change file and coordinate the release with @belopash .

	modified:   common/changes/@subsquid/solana-rpc/fix-solana-polling-crashes_2025-01-15-11-14.json
@belopash belopash merged commit c3894c4 into master Jan 15, 2025
1 check passed
@belopash belopash deleted the fix/solana-polling-crashes branch January 15, 2025 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants