-
-
Notifications
You must be signed in to change notification settings - Fork 306
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
Bump SSZ to v0.9.0 #3760
Bump SSZ to v0.9.0 #3760
Conversation
This is a combination of 50 commits. Remove SSZ from params Update types in lodestar-api Replace .defaultValue() with .defaultValue Fix more types More type fixes Fix upgradeState functions Fix processDeposit pending logic Update test types f Update fork-choice types Update validator types WIP Lodestar changes WIP Lodestar Fix spec tests FIx more Lodestar types Fix proofs types Fix all type issues Use Uint64NumInf only where applicable Don't manipulate casing in loadYaml WIP Fix spec tests Fix build types Fix test types Update test types Fix getRandaoMix tests Review pickEth1Vote syncPubkeys in createFromState Fix unit tests Safe clone for CachedBeaconState Fix unit tests issues Fix genesis logic with ViewDU Fix all unit tests Fix processRewardsAndPenaltiesAllForks Commit state after processing Fix statusProcessEpoch Create valid pubkey cache in perf test Fix getDeposits for perf test Ensure CachedBeaconState clone is immutable Fix genesis spec tests Ensure stable commit in ViewDU Add advice on running spec tests Remove use of the type unsafe Number constructor Fix casing in spec test definitions Fix casing and bigint types in spec tests Advance epochCtx cached time units Add debug mode to fork-choice tests Fix spec test bigint type Fix typo in processAttestation flags Fix altair transition spec tests Fix altair transition tests Commit ViewDU changes in upgradeState Fix rebase issues
Codecov Report
@@ Coverage Diff @@
## master #3760 +/- ##
==========================================
- Coverage 36.25% 36.24% -0.01%
==========================================
Files 328 327 -1
Lines 9142 9094 -48
Branches 1438 1429 -9
==========================================
- Hits 3314 3296 -18
+ Misses 5682 5655 -27
+ Partials 146 143 -3 |
Performance Report✔️ no performance regression detected 🚀🚀 Significant benchmark improvement detected
Full benchmark results
|
yarn.lock
Outdated
@@ -505,6 +525,15 @@ | |||
buffer-from "^1.1.1" | |||
snappy "^6.3.5" | |||
|
|||
"@chainsafe/ssz@^0.8.20": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Warning, this should not be in the yarn.lock. Who is depending in the old versions?
Draft note
This PR installs a placeholder version of SSZ with this awesome tool https://gitpkg.vercel.app/. This PR is open now to proof that Lodestar can run with this new SSZ version before releasing it.
lodestar/packages/api/package.json
Lines 43 to 44 in d719729
Motivation
Lodestar has implemented many optimizations around our data-structures. This PR together with ChainSafe/ssz#223 upstreams them to ssz.
See ChainSafe/ssz#223 for full rationale
Description
TODO After merging
ssz.Root.equals
, use local bytesEqual utilities Use byteArrayEquals instead of ssz.Root.Equals #3996Closes #2859
Closes #2419
Closes #2408
Closes #3082
Closes #2966
Closes #3080