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

support --sync.loop.block.limit in newHeads notification #9684

Merged
merged 4 commits into from
Mar 13, 2024

Conversation

AskAlexSharov
Copy link
Collaborator

@AskAlexSharov AskAlexSharov commented Mar 12, 2024

now, if --sync.loop.block.limit=10 erigon may send all headers - because doesn't check jump end. Added:

  • check that headerNum < finishStageAfterSync (it was missed)
  • log amount of sent headers
  • iterate over canonical markers instead of headers - it's cheaper and don't need additional hash check

related to #8721

@AskAlexSharov AskAlexSharov merged commit cdb36c9 into devel Mar 13, 2024
7 checks passed
@AskAlexSharov AskAlexSharov deleted the iterate_over_canonical_markers_check_end branch March 13, 2024 02:41
mriccobene pushed a commit to mriccobene/erigon that referenced this pull request Mar 13, 2024
…h#9684)

now, if `--sync.loop.block.limit=10` erigon may send all headers -
because doesn't check jump end. Added:
- check that headerNum < `finishStageAfterSync` (it was missed)
- log amount of sent headers
- iterate over canonical markers instead of headers - it's cheaper and
don't need additional hash check


related to erigontech#8721
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