Skip to content
This repository has been archived by the owner on Aug 23, 2020. It is now read-only.

Remove address scan in bootstrap #1861

Merged
merged 5 commits into from
May 14, 2020

Conversation

GalRogozinski
Copy link
Contributor

Description of change

No longer scan milestones via the coo address. Instead walk up from the latest solid milestone and add the existing milestones to the solidifier queue to process

Replaces #1860. It has the exact same code + a little refactoring + removing a regression test.

Explanation for regression test removal

The test relied on scanning the db for milestones that we missed. Since we now assume the db has all milestones present, the test cannot work. This is a fine behavior change so we can safely remove the test.

An issue that can come up with this behavior change

If a node gets shutdown before receiving a milestone it may not register it. Then when it gets turned on it will not find it. This issue should be resolved by rebroadcasting the milestone

Type of change

  • Bug fix (a non-breaking change which fixes an issue)
  • Documentation Fix

How the change has been tested

Relied on tests done on #1860

Change checklist

  • My code follows the contribution guidelines for this project
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • New and existing unit tests pass locally with my changes

Copy link
Contributor

@acha-bill acha-bill left a comment

Choose a reason for hiding this comment

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

LGTM

@GalRogozinski GalRogozinski merged commit 017af93 into iotaledger:release-v1.8.6 May 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants