c74ba5c0c6
* ssz: move ref support outside Instead of allocating ref's inside SSZ, move it to separate helper: * makes `ref` allocations explicit * less magic inside SSZ * `ref` in nim generally means reference whereas SSZ was loading as value - if a type indeed used references it would get copies instead of references to a single value on roundtrip which is unexpected TODO: EF tests would benefit from some refactoring since they all do the same thing practically.. Co-authored-by: Zahary Karadjov <zahary@gmail.com> |
||
---|---|---|
.. | ||
.gitignore | ||
README.md | ||
ncli_hash_tree_root.nim | ||
ncli_pretty.nim | ||
ncli_transition.nim | ||
nim.cfg |
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 nim-beacon-chain
git clone https://github.com/status-im/nim-beacon-chain.git
cd nim-beacon-chain
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