nimbus-eth2/ncli
Jacek Sieka a88427bd39
ncli_db: more readonly support (#3411)
Update several `ncli_db` commands to run in readOnly mode, allowing them
to be used with a running instance - in particular era export.

* export all eras by default
* skip already-exported eras
2022-02-18 07:37:44 +01:00
..
.gitignore
README.md
deposit_downloader.nim
download_mainnet_deposits.sh
e2store.nim
e2store.py
logtrace.nim
ncli.nim
ncli_common.nim proc -> func, mainly in spec/state transition and adjecent modules (#3405) 2022-02-17 11:53:55 +00:00
ncli_db.nim ncli_db: more readonly support (#3411) 2022-02-18 07:37:44 +01:00
ncli_query.nim
nim.cfg
nimquery.nim
requirements.txt Bump ipython (security advisory) 2022-02-15 23:13:23 +02:00
resttest-rules.json rename MERGE_FORK_EPOCH to BELLATRIX_FORK_EPOCH (#3350) 2022-02-02 14:06:55 +01:00
resttest.nim
validator_db_aggregator.nim
validator_db_reports.ipynb

README.md

Introduction

ncli is a set of low level / debugging tools to interact with the nimbus beacon chain specification implementation, simliar to zcli. With it, you explore SSZ, make state transitions and compute hash tree roots.

Tools

  • transition: Perform state transition given a pre-state and a block to apply (both in SSZ format)
  • hash_tree_root: Print tree root of an SSZ object
  • pretty: Pretty-print SSZ object as JSON

Building

Follow the instructions from nimbus-eth2

git clone https://github.com/status-im/nimbus-eth2.git
cd nimbus-eth2
make

Usage

# Build with minimal config
../env.sh nim c -d:const_preset=minimal ncli_transition
# Build with mainnet config
../env.sh nim c -d:const_preset=mainnet ncli_transition

# Run..
./ncli_transition --help