nimbus-eth2/ncli
tersec 193a982d24
use EF consensus spec v1.5.0-alpha.6 test vectors (#6568)
* use EF consensus spec v1.5.0-alpha.6 test vectors

* LC changes are good as is, no need for the debug comment

* Fix indentation

* Use `execution_requests` for requests root

* fill in spec reference URLs for ExecutionPayload(Header)

* copy `execution_requests` when blidning blocks for Electra and add test

* fix `test_engine_api_conversions`

---------

Co-authored-by: Etan Kissling <etan@nimbus.team>
2024-09-20 21:32:16 +02:00
..
.gitignore
README.md
deposit_downloader.nim
download_mainnet_deposits.sh
e2store.nim
e2store.py
era.nim era: speed up index reading (#6305) 2024-05-22 10:21:04 +02:00
logtrace.nim
ncli.nim rm outdated/semi-duplicate execution layer withdrawal request processing (#6301) 2024-05-22 01:59:11 +02:00
ncli_common.nim use EF consensus spec v1.5.0-alpha.6 test vectors (#6568) 2024-09-20 21:32:16 +02:00
ncli_db.nim add database electra block tests (#6394) 2024-07-01 04:18:41 +00:00
ncli_query.nim
ncli_split_keystore.nim
ncli_testnet.nim rm unused code/type conversoins; re-enable Electra block gossip verification (#6545) 2024-09-12 11:11:08 +02:00
nim.cfg fix most ConvFromXtoItselfNotNeeded hints and unhide remaining ones (#6307) 2024-05-22 13:56:37 +02:00
nimquery.nim
requirements.txt Bump tornado from 6.3.3 to 6.4.1 in /ncli (#6328) 2024-06-06 23:38:04 +00:00
resttest-rules.json REST: getBlockRewards() and getSyncCommitteeRewards() implementation (#6556) 2024-09-18 23:34:32 +00:00
resttest.nim
resttest.nim.cfg
validator_db_aggregator.nim make `Gwei` `distinct` (#6090) 2024-03-19 14:22:07 +01:00
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, similar 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