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

C2C merge #3597

Merged
merged 13 commits into from
Feb 9, 2022
Merged

C2C merge #3597

merged 13 commits into from
Feb 9, 2022

Conversation

jannotti
Copy link
Contributor

@jannotti jannotti commented Feb 8, 2022

No description provided.

tsachiherman and others added 12 commits February 2, 2022 12:57
…3551)

## Summary

Add a warning in case the VotingKeys method surpasses the expected execution time limits.

## Test Plan

Tested manually.
## Summary

The TestSyncFromClient was randomly failing. This is a real issue in production code, and the fix it pretty trivial.

## Test Plan

Use existing tests to verify test.
## Summary
* Do not load everything into memory but write directly in into a file
  This creates extremely high number of reallocation and CPU and RAM wasting.
* Add cmd options for downloading only (no loading), and for downloading
  from a single relay

# Perf data:
| param       | current | new      |
|-----------|--------|---------|
| RAM          | 5 GB    | 200 MB |
| Total time | 823 s   | 441 s    |

Downloading time went down from minutes to tens of seconds.
Our nightly pipeline broke because of centos:8 reaching end of life and deprecating their package repo AppStream. Switching to official new version Centos Stream 8.
## Summary

Remove a hardcoded constant in sortition.go which was
used as the denominator in determining the selection ratio.

This clarifies what the maximum possible output size is of
the output VRF based on the SHA algorithm used to generate it.

## Purpose

This is simply a code quality change to make it easier to read and
understand without any focus on new functionality or performance.

It is unlikely that the VRF SHA length used by Algorand will changed,
so the generalization to a dynamic length based on the length of the
Crypto digest is only for the reader.

The use of an `init` function to initialize the `maxFloat` once rather than
anytime `sortition` runs is a minor optimization, but likely to be neglibile
in the grand scheme of things.

## Test Plan

Due to the usage of C src code, a simple `go test -v ./data/committee/sortition/`
cannot be executed without the proper configurations. However, circle CI
should be able to execute the unit tests automatically and verify the changes.

Recommendation: Running the recommended make targets to test the changes
did not automatically due to missing dependencies, so potentially a Dockerfile
could help resolve this for future contributors.
## Summary

Added a new option `--exclude-fields` to `file` subcommand.
This simplifies large dumps comparison by excluding all exclude some header fields.
Also moved some shared cmd code into a new cmdutil package.

## Test Plan

Tested manually
Adds commentary based on context found in #2730.
* adding another field for lsig disassembly

* generate oas3

* rename to match other keys

* adding trace, just to see

* nevermind

* fix w/jj comment
## Summary

Following up on #3558, this PR update the THANKS.md file.

## Test Plan

Not required for this change.
@algorand algorand deleted a comment from github-actions bot Feb 8, 2022
@algorand algorand deleted a comment from github-actions bot Feb 8, 2022
@Aharonee Aharonee merged commit 368a93f into feature/dilithium-scheme-integration Feb 9, 2022
@tsachiherman tsachiherman deleted the c2c-merge branch February 21, 2022 15:44
PhearZero pushed a commit to PhearNet/crypto that referenced this pull request Jan 17, 2025
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.

8 participants