Requirements Stable rust: 1.50 Nightly rust: 1.52
Check this page to install rust and others dependencies, according to your platform.
Get and compile bifrost source code.
git clone https://github.com/bifrost-finance/bifrost.gitcd bifrostgit checkout ark-poacargo build --release
It might take lots of time on compilation.
Find POA chain spec. It locates at bin/node/service/res/bifrost-poa.json.
Start a node.
There're three roles of bifrost node.
Validator
Start node.
./target/release/bifrost \--chain bin/node/service/res/bifrost-poa.json \--base-path your_db_path \--name "Your Node Name" \--rpc-cors all \--validator
Get session key.
curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "author_rotateKeys", "params":[]}' http://localhost:9933
Register as an validator.
Ongoing. Picture about how to set set session key
Ongoing. Approve this register as validator.
Wait an epoch to see whether your validator produces block or not.
Show some proof this validator is producing blocks.
Full Node
./target/release/bifrost \--chain bin/node/service/res/bifrost-poa.json \--base-path your_db_path \--name "Your Node Name" \--rpc-cors all
Archieve Node
./target/release/bifrost \--chain bin/node/service/res/bifrost-poa.json \--base-path your_db_path \--name "Your Node Name" \--rpc-cors all \--pruning archive
Requirements: docker
Pull POA image.
docker pull bifrostnetwork/bifrost:bifrost-poa
Start a node.
There're three roles of bifrost node.
Validator
Start node.
docker run \-it \-p 30333:30333 \-p 9944:9944 \-p 9933:9933 \-v /root/disk/bifrost-node:/node \bifrostnetwork/bifrost:bifrostnetwork/bifrost:bifrost-poa \--base-path your_db_path \--name "Your Node Name" \--rpc-cors all \--validator
Get session key.
curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "author_rotateKeys", "params":[]}' http://localhost:9933
Register as an validator.
Wait an epoch to see whether your validator produces block or not.
Full Node
docker run \-it \-p 30333:30333 \-p 9944:9944 \-p 9933:9933 \-v /root/disk/bifrost-node:/node \bifrostnetwork/bifrost:bifrostnetwork/bifrost:bifrost-poa \--base-path your_db_path \--name "Your Node Name" \--rpc-cors all
Archive Node
docker run \-it \-p 30333:30333 \-p 9944:9944 \-p 9933:9933 \-v /root/disk/bifrost-node:/node \bifrostnetwork/bifrost:bifrostnetwork/bifrost:bifrost-poa \--base-path your_db_path \--name "Your Node Name" \--rpc-cors all \--pruning archive