mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-02-27 13:40:43 +00:00
* spec-following renames * more documentation * simplify casper slashing * fix block creation flow / logic
13 lines
309 B
Nim
13 lines
309 B
Nim
import
|
|
../beacon_chain/[ssz],
|
|
../beacon_chain/spec/[beaconstate, digest],
|
|
../tests/testutil
|
|
|
|
proc stateSize(deposits: int) =
|
|
let state = get_initial_beacon_state(
|
|
makeInitialDeposits(deposits), 0, Eth2Digest())
|
|
|
|
echo "Validators: ", deposits, ", total: ", state.serialize().len
|
|
|
|
stateSize(1000)
|