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

Fix complains and bad test #11555

Merged
merged 3 commits into from
Oct 17, 2022
Merged

Fix complains and bad test #11555

merged 3 commits into from
Oct 17, 2022

Conversation

terencechain
Copy link
Member

Fix complains for

  • Unit test noViableHead_Reboot -> TestNoViableHead_Reboot
  • beacon-chain/state/stateutil/state_hasher.go was unused. It looks like it was supposed to remove the native state
  • same with some functions in beacon-chain/state/testing/getters_block.go
  • privkey.(*crypto.Secp256k1PrivateKey) did not check for casting error
  • some bad comments

@terencechain terencechain added Ready For Review A pull request ready for code review Cleanup Code health! labels Oct 17, 2022
@terencechain terencechain self-assigned this Oct 17, 2022
@terencechain terencechain requested a review from a team as a code owner October 17, 2022 13:24
@@ -2206,7 +2206,7 @@ type newForkChoicer func() forkchoice.ForkChoicer
// 2 (and the merge block in this sequence). Block 18 justifies it and Block 19 returns
// INVALID from NewPayload, with LVH block 12. No head is viable. We check that
// the node can reboot from this state
func noViableHead_Reboot(t *testing.T) {
func TestNoViableHead_Reboot(t *testing.T) {
Copy link
Member Author

Choose a reason for hiding this comment

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

@potuz please look

@prylabs-bulldozer prylabs-bulldozer bot merged commit e8400a0 into develop Oct 17, 2022
@delete-merged-branch delete-merged-branch bot deleted the cleanup branch October 17, 2022 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cleanup Code health! Ready For Review A pull request ready for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants