Skip to content

Anaylsis batch hotfix#931

Merged
slundqui merged 4 commits intodelvtech:mainfrom
slundqui:anaylsis_batch_hotfix
Sep 30, 2023
Merged

Anaylsis batch hotfix#931
slundqui merged 4 commits intodelvtech:mainfrom
slundqui:anaylsis_batch_hotfix

Conversation

@slundqui
Copy link
Copy Markdown

@slundqui slundqui commented Sep 29, 2023

Previously, we look at the minimum block number of transactions, wallet deltas, and pool info to see the last block updated. However, there's a case where a large number of blocks tick up without any transactions. In this case, the next transaction will result in analysis attempting to process a large number of blocks, which breaks the analysis pipeline.

This PR resolves this issue, along with the race condition solved in #906 by ensuring we write pool_info as the last item, and using pool_info as the table to see how far along the data process is.

This also deprecates all current wallet info tables from the db in favor of using wallet deltas, as current wallet info needed pool_info data for its calculations.

@vercel
Copy link
Copy Markdown

vercel Bot commented Sep 29, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
elf-simulations ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 30, 2023 5:44pm

Copy link
Copy Markdown
Contributor

@dpaiton dpaiton left a comment

Choose a reason for hiding this comment

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

Awesome! 🧹

@slundqui slundqui force-pushed the anaylsis_batch_hotfix branch from b71445c to 0faf7aa Compare September 30, 2023 17:43
@slundqui slundqui merged commit 488d83d into delvtech:main Sep 30, 2023
@slundqui slundqui deleted the anaylsis_batch_hotfix branch September 30, 2023 17:48
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.

2 participants