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

dkg: add --no-verify for hash verifications #1099

Merged
merged 2 commits into from
Sep 8, 2022
Merged

Conversation

dB2510
Copy link
Contributor

@dB2510 dB2510 commented Sep 8, 2022

Configure --no-verify for config_hash and definition_hash verifications by adding VerifyHashes method to Definition.

category: refactor
ticket: #1084

@codecov
Copy link

codecov bot commented Sep 8, 2022

Codecov Report

Merging #1099 (3d58eed) into main (c1aac33) will decrease coverage by 0.37%.
The diff coverage is 61.53%.

@@            Coverage Diff             @@
##             main    #1099      +/-   ##
==========================================
- Coverage   53.40%   53.03%   -0.38%     
==========================================
  Files         127      127              
  Lines       14292    14300       +8     
==========================================
- Hits         7633     7584      -49     
- Misses       5560     5620      +60     
+ Partials     1099     1096       -3     
Impacted Files Coverage Δ
cluster/definition.go 49.81% <37.50%> (-1.28%) ⬇️
dkg/disk.go 56.41% <100.00%> (+1.94%) ⬆️
core/qbft/qbft.go 71.67% <0.00%> (-10.31%) ⬇️
core/leadercast/transport.go 75.14% <0.00%> (-1.19%) ⬇️
core/scheduler/scheduler.go 73.49% <0.00%> (-0.55%) ⬇️

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

}

// VerifyHashes returns an error if hashes populated from json object doesn't matches actual hashes.
func (d Definition) VerifyHashes() error {
Copy link
Contributor

Choose a reason for hiding this comment

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

VerifyDefinitionHashes since we will add VerifyLockHashes and both method appear on the Lock struct

@dB2510 dB2510 linked an issue Sep 8, 2022 that may be closed by this pull request
@dB2510 dB2510 added the merge when ready Indicates bulldozer bot may merge when all checks pass label Sep 8, 2022
@obol-bulldozer obol-bulldozer bot merged commit ea4a0b1 into main Sep 8, 2022
@obol-bulldozer obol-bulldozer bot deleted the dhruv/verifyhashes branch September 8, 2022 14:27
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.

Bypass definition hash verification with --no-verify flag
2 participants