Skip to content

Latest commit

 

History

History
43 lines (28 loc) · 865 Bytes

File metadata and controls

43 lines (28 loc) · 865 Bytes

CKB Core Development

Running Test

Install dependencies

rustup component add rustfmt
rustup component add clippy

Run tests

make ci

Run acceptance integration tests

cargo build
cd test && cargo run ../target/debug/ckb

Chain Spec

The subcommand ckb init has an option --export-specs to export spec files as well, which allows editing the chain spec for development.

The chain spec can switch between different PoW engines. Wiki has the instructions about how to configure it.-

Well-known Hashes

The command ckb cli hashes prints the well-known hashes for current effective chain spec.

The file docs/hashes.toml contains the well-known hashes for all the bundled chain specs. The file is generated by:

cargo run cli hashes -b > docs/hashes.toml