Skip to content
This repository has been archived by the owner on Oct 5, 2022. It is now read-only.

Perform the sync process in chunks so there are no timeouts #32

Merged
merged 5 commits into from
Jun 25, 2021

Conversation

gndelia
Copy link
Contributor

@gndelia gndelia commented Jun 24, 2021

This PR updates the logic of calling getPastEvents() (used in syncing transactions and refreshing transactions) to perform this operation in chunks instead of the whole range by default. This will allow new users who have to sync the whole blockchain or those who haven't synced in a long time to be able to complete the sync process (even though it might take some time)

References the following issues

@gndelia gndelia added the bug Something isn't working label Jun 24, 2021
@gndelia gndelia requested a review from gabmontes June 24, 2021 18:57
@gndelia gndelia self-assigned this Jun 24, 2021
src/plugins/explorer/sync-transactions.js Show resolved Hide resolved
src/plugins/explorer/sync-transactions.js Outdated Show resolved Hide resolved
src/plugins/explorer/sync-transactions.js Outdated Show resolved Hide resolved
src/plugins/explorer/sync-transactions.js Outdated Show resolved Hide resolved
src/plugins/explorer/sync-transactions.js Outdated Show resolved Hide resolved
@gndelia gndelia requested a review from gabmontes June 25, 2021 19:45
@gndelia gndelia force-pushed the sync-transactions-in-chunks branch from 76a1309 to df51bd8 Compare June 25, 2021 19:47
@gabmontes gabmontes merged commit 013cff8 into master Jun 25, 2021
@gabmontes gabmontes deleted the sync-transactions-in-chunks branch June 25, 2021 19:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants