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

Sort public keys before Alphabet list merge #670

Closed
alexvanin opened this issue Jul 7, 2021 · 0 comments · Fixed by #688
Closed

Sort public keys before Alphabet list merge #670

alexvanin opened this issue Jul 7, 2021 · 0 comments · Fixed by #688
Assignees
Labels
bug Something isn't working neofs-ir Inner Ring node application issues
Milestone

Comments

@alexvanin
Copy link
Contributor

Noticed by @doubiliu

        // pkg/innerring/processors/governance/list_test.go:58
	t.Run("unsorted keys", func(t *testing.T) {
		orig := keys.PublicKeys{k[1], k[2], k[3], k[4]}
		exp := keys.PublicKeys{k[1], k[2], k[5], k[4]} // not sorted
		got, err := newAlphabetList(orig, exp)
		require.NoError(t, err)
		require.True(t, equalPublicKeyLists(exp, got)) // fails right now
	})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working neofs-ir Inner Ring node application issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants