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

cluster: skip verification if locally created #1026

Merged
merged 2 commits into from
Aug 23, 2022

Conversation

corverroos
Copy link
Contributor

Verification of unsigned charon create cluster lock files succeed avoiding the need for --no-verify.

category: bug
ticket: #1025

@codecov
Copy link

codecov bot commented Aug 23, 2022

Codecov Report

Merging #1026 (4895aa3) into main (735316b) will decrease coverage by 0.27%.
The diff coverage is 32.60%.

@@            Coverage Diff             @@
##             main    #1026      +/-   ##
==========================================
- Coverage   54.02%   53.75%   -0.28%     
==========================================
  Files         124      124              
  Lines       13791    13913     +122     
==========================================
+ Hits         7451     7479      +28     
- Misses       5295     5376      +81     
- Partials     1045     1058      +13     
Impacted Files Coverage Δ
cluster/lock.go 58.38% <0.00%> (-0.74%) ⬇️
cmd/createdkg.go 71.91% <0.00%> (-2.51%) ⬇️
testutil/compose/lock.go 70.87% <ø> (-0.29%) ⬇️
cluster/definition.go 58.98% <25.00%> (-0.95%) ⬇️
cmd/createcluster.go 47.86% <40.62%> (-0.50%) ⬇️
core/proto.go 63.71% <0.00%> (-3.58%) ⬇️
core/signeddata.go 39.27% <0.00%> (-2.39%) ⬇️
core/dutydb/memory.go 69.77% <0.00%> (-1.12%) ⬇️
core/types.go 32.08% <0.00%> (-0.73%) ⬇️
core/qbft/qbft.go 81.54% <0.00%> (-0.43%) ⬇️
... and 8 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@corverroos corverroos added the merge when ready Indicates bulldozer bot may merge when all checks pass label Aug 23, 2022
@@ -155,6 +162,10 @@ func (d Definition) Verify() error {
}
}

if noSigs > 0 && noSigs != len(d.Operators) {
Copy link
Contributor

Choose a reason for hiding this comment

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

so, either no one signs OR all of them sign, only then we consider it verified?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yup

Copy link
Contributor

Choose a reason for hiding this comment

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

hope we have tests for it

Copy link
Contributor

@xenowits xenowits left a comment

Choose a reason for hiding this comment

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

Looks good!

@obol-bulldozer obol-bulldozer bot merged commit ac120f0 into main Aug 23, 2022
@obol-bulldozer obol-bulldozer bot deleted the corver/verifycluster branch August 23, 2022 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge when ready Indicates bulldozer bot may merge when all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants