prysm-pulse/tools/update-genesis-time
Raul Jordan 302b0f8c80
Use FastSSZ Everywhere Applicable (#6135)
* use fast ssz anywhere applicable
* use fastssz clearly
* Merge branch 'master' into use-fastssz
* Apply suggestions from code review
* imports
* Update beacon-chain/p2p/fork.go
* Merge branch 'master' into use-fastssz
* update go-ssz
* update go-ssz
* Merge refs/heads/master into use-fastssz
* Merge refs/heads/master into use-fastssz
2020-06-05 13:48:40 +00:00
..
BUILD.bazel libfuzz based tests (#5095) 2020-05-05 07:22:26 +00:00
main.go Use FastSSZ Everywhere Applicable (#6135) 2020-06-05 13:48:40 +00:00
README.md A tool to update genesis time of an existing state (#5664) 2020-04-28 20:55:49 +00:00

Utility to Update Beacon State Genesis Time

This is a utility to help users update genesis time of an input beacon state

Usage

Name: update-genesis-time - this is a utility to update genesis time of a beacon state

Usage: update-genesis-time [global options]

Flags:

  • --input-ssz-state: Input filename of the SSZ marshaling of the genesis state
  • --genesis-time: Unix timestamp used as the genesis time in the generated genesis state (defaults to now)

Example

To use private key with default RPC:

bazel run //tools/update-genesis-time -- --input-ssz-state=/tmp/genesis.ssz

Output

INFO: Elapsed time: 5.887s, Critical Path: 4.99s
INFO: 41 processes: 41 darwin-sandbox.
INFO: Build completed successfully, 44 total actions
INFO: Build completed successfully, 44 total actions
2020/04/28 11:55:21 No --genesis-time specified, defaulting to now
2020/04/28 11:55:21 Done writing to /tmp/genesis.ssz