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

Stateproofs: Reduce num reveals #4355

Merged
merged 8 commits into from
Aug 5, 2022

Conversation

id-ms
Copy link
Contributor

@id-ms id-ms commented Aug 4, 2022

Summary

Test Plan

@id-ms id-ms changed the base branch from master to feature/stateproofs August 4, 2022 08:28
@codecov
Copy link

codecov bot commented Aug 4, 2022

Codecov Report

Merging #4355 (1cab09b) into feature/stateproofs (883bbbd) will decrease coverage by 0.09%.
The diff coverage is 29.16%.

@@                   Coverage Diff                   @@
##           feature/stateproofs    #4355      +/-   ##
=======================================================
- Coverage                55.70%   55.60%   -0.10%     
=======================================================
  Files                      401      402       +1     
  Lines                    50687    50703      +16     
=======================================================
- Hits                     28233    28192      -41     
- Misses                   20073    20131      +58     
+ Partials                  2381     2380       -1     
Impacted Files Coverage Δ
crypto/stateproof/structs.go 0.00% <0.00%> (ø)
stateproof/builder.go 77.19% <50.00%> (+0.20%) ⬆️
ledger/voters.go 72.46% <57.14%> (+0.40%) ⬆️
stateproof/signer.go 50.63% <100.00%> (+0.63%) ⬆️
catchup/service.go 68.64% <0.00%> (-3.71%) ⬇️
cmd/algoh/blockWatcher.go 77.77% <0.00%> (-3.18%) ⬇️
node/node.go 23.01% <0.00%> (-2.39%) ⬇️
ledger/tracker.go 78.01% <0.00%> (-2.16%) ⬇️
util/db/dbutil.go 49.09% <0.00%> (-1.22%) ⬇️
data/abi/abi_type.go 87.67% <0.00%> (-0.95%) ⬇️
... and 2 more

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

Comment on lines 133 to 136
provenWtRatio := 3 - (float64(168) / 100)
provenWt := uint64(float64(sigWt) / (provenWtRatio))
lnProvenWt, err := LnIntApproximation(provenWt)
a.NoError(err)
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: call checkRatio(168, ...) and return lnProvenWt ?

crypto/stateproof/weights_test.go Show resolved Hide resolved
@id-ms id-ms merged commit 0c2bb50 into algorand:feature/stateproofs Aug 5, 2022
@id-ms id-ms deleted the reduce-num-reveals branch August 5, 2022 14:50
@id-ms id-ms mentioned this pull request Aug 5, 2022
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.

3 participants