mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-08 02:31:19 +00:00
44611e0fb2
* Add a tool to update genesis time * Minor touchups * Merge branch 'master' into update-genesis-time * Added a readme * Merge refs/heads/master into update-genesis-time * Merge branch 'update-genesis-time' of github.com:prysmaticlabs/prysm into update-genesis-time * Merge refs/heads/master into update-genesis-time * Merge refs/heads/master into update-genesis-time
36 lines
945 B
Markdown
36 lines
945 B
Markdown
## 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
|
|
```
|