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

Separate FIRST_BLOCK and TRACE_FIRST_BLOCK option for blocks import and tracing methods #5014

Merged
merged 1 commit into from
Dec 19, 2021

Conversation

vbaranov
Copy link
Member

@vbaranov vbaranov commented Dec 18, 2021

Motivation

Currently, we have FIRST_BLOCK and LAST_BLOCK to manage the range of blocks to index. But, for instance, the archive node can be partially archive node: there is no archive state until a specific block number. In that setup, Blockscout will not import any block less than FIRST_BLOCK, if it is set up. The idea is to add more flexibility and to separate block import and tracing methods to be available to import blocks from partial archive node even without internal transactions.

Changelog

TRACE_FIRST_BLOCK and TRACE_LAST_BLOCK are added

Checklist for your Pull Request (PR)

@vbaranov vbaranov force-pushed the vb-separate-first-block-for-trace branch from fa2f270 to debdc32 Compare December 18, 2021 13:02
@vbaranov vbaranov force-pushed the vb-separate-first-block-for-trace branch from debdc32 to 714670e Compare December 19, 2021 07:40
@vbaranov vbaranov merged commit d66c7ba into master Dec 19, 2021
@vbaranov vbaranov deleted the vb-separate-first-block-for-trace branch December 19, 2021 08:01
sidhujag pushed a commit to syscoin/blockscout that referenced this pull request Dec 19, 2021
…block-for-trace

Separate FIRST_BLOCK and TRACE_FIRST_BLOCK option for blocks import and tracing methods
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.

None yet

1 participant