-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ssz: finish implementation * add object support, simplify implementation * fix extra round of hashing in tree_hash_root * ssz: cleanups * work around Nim range bug for Uint24, cleanups
- Loading branch information
1 parent
5dc06f4
commit 142aa8c
Showing
6 changed files
with
231 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import | ||
../beacon_chain/[ssz], | ||
../beacon_chain/spec/[beaconstate, digest], | ||
../tests/testutil | ||
|
||
proc stateSize(deposits: int) = | ||
let state = on_startup(makeInitialDeposits(deposits), 0, Eth2Digest()) | ||
|
||
echo "Validators: ", deposits, ", total: ", state.serialize().len | ||
|
||
stateSize(1000) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
-d:debugFieldSizes |
Oops, something went wrong.