- install Ckb (compile and install with the latest
develop
branch) - install and start PostgreSQL
- create new database
mercury-dev
, if it already exists, delete it first and then re-create it - create tables and indexes
psql -h localhost -U postgres -d mercury-dev -f devtools/create_table/create_table.sql
Note: only needs to be executed once at initialization and reinitialization.
cd integration
rm -rf ./dev_chain/dev/data ./free-space
ckb import -C dev data/ckb_dev.json
cd integration
cargo run
or
cd integration
cargo run -- -t test_generate_blocks