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

Initialize Data Correctly For Powchain Service #8812

Merged
merged 4 commits into from
Apr 25, 2021

Conversation

nisdas
Copy link
Member

@nisdas nisdas commented Apr 25, 2021

What type of PR is this?

Bug Fix

What does this PR do? Why is it needed?

  • Handles empty trie with 0 elements in it correctly.
  • Abstract method into separate functions.
  • Adds in unit tests

Which issues(s) does this PR fix?

Other notes for review

@nisdas nisdas requested a review from a team as a code owner April 25, 2021 04:41
return true
}
}
log.Infof("Recovering missing deposit containers, node is re-requesting missing deposit data.")
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
log.Infof("Recovering missing deposit containers, node is re-requesting missing deposit data.")
log.Info("Recovering missing deposit containers, node is re-requesting missing deposit data.")

Copy link
Member

Choose a reason for hiding this comment

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

Remove the period too. Thanks

@prestonvanloon prestonvanloon merged commit ef9f6c5 into develop Apr 25, 2021
@delete-merged-branch delete-merged-branch bot deleted the initializeIndexCorrectly branch April 25, 2021 05:11
prestonvanloon pushed a commit that referenced this pull request Apr 25, 2021
* initialize index correctly

* comments

* review comments

* Update beacon-chain/powchain/service.go

Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
@@ -955,7 +955,7 @@ func (s *Service) initializeEth1Data(ctx context.Context, eth1DataInDB *protodb.
return nil
}

// validates that all deposit containers are valid and have their relevant indexes
// validates that all deposit containers are valid and have their relevant indices

Choose a reason for hiding this comment

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

how this work

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.

deposit merkle branch of deposit root did not verify for root error
5 participants