This repository contains scripts for running an independent instance of BAS.
Before running command you must do following steps:
*.example.com
set to your machine (use dedicated machine with public IP)config.json
file to update parameters you need (you can find all addresses in keystore folder)Config structure:
chainId
- identifier of your BAS chainvalidators
- list of initial validator set (make sure that you have the same list in docker compose file)systemTreasury
- address of system treasury that accumulates 1/16 of rewards (might be governance)consensusParams
- parameters for the consensus and staking
activeValidatorsLength
- total amount of active validators (suggested values are 3k+1, where k is honest validators, even better, for example 7, 13, 19, 25, 31...)epochBlockInterval
- better to use 1 day epoch (86400/3=28800, where 3s is block time)misdemeanorThreshold
- after missing this amount of blocks per day validator losses all daily rewards (penalty)felonyThreshold
- after missing this amount of blocks per day validator goes in jail for N epochsvalidatorJailEpochLength
- how many epochs validator should stay in jail (7 epochs = ~7 days)undelegatePeriod
- allow claiming funds only after 6 epochs (~7 days)minValidatorStakeAmount
- how many tokens validator must stake to create a validator (in ether)minStakingAmount
- minimum staking amount for delegators (in ether)initialStakes
- initial stakes fot the validators (must match with validators list)votingPeriod
- default voting period for the governance proposalsfaucet
- map with initial balances for faucet and other needsYou can check Makefile to choose the most interesting commands, but if you just need to set up everything just run next command:
apt update
apt install -y build-essential socat
git clone https://github.com/Ankr-network/bas-devnet-setup bas --recursive
cd bas
make install-docker
make install-acme
export CHAIN_ID=14000
export DOMAIN_NAME=dev-01.bas.ankr.com
make all
P.S: Variable DOMAIN_NAME
should be set to your domain
Deployed services can be access though next endpoints:
If you want to run node w/o load balancer and SSL certificates then use next command:
CHAIN_ID=14000 make create-genesis start
Docker compose files exposes next ports: