Skip to content

Latest commit

 

History

History
71 lines (48 loc) · 1001 Bytes

ckb-core-dev.md

File metadata and controls

71 lines (48 loc) · 1001 Bytes

CKB Core Development

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

Running Test

Install dependencies

rustup component add rustfmt
rustup component add clippy

Run tests

make ci

Run acceptance integration tests

make integration

Chain Spec

The chain spec in specs/dev.toml can switch between different PoW engines.

CKB now supports following PoW Engines.

Eaglesong

[pow]
func = "Eaglesong"

Dummy

[pow]
func = "Dummy"

and don't forget to modify ckb-miner.toml miner workers section:

[[miner.workers]]
worker_type = "Dummy"
delay_type  = "Constant"
value       = 5000

Development Tools

Schema Compiler and Code Generator For Serialization

cargo install moleculec