The Color Prism Consensus algorithm will be the backbone of the Color Platform, ensuring dApp and Core transaction flows happen accordingly. Using the Color Consensus we believe it will achieve two main things:
- Achieve Transaction Confirmation Speeds at twice the rate of PBFT through clustered transaction confirmation.
- More Decentralized than other DPoS networks, thus being more Robust and harder to bribe the mining consensus participants.
Consensus Algorithm Type | Modified DPoS |
Number of Consensus Participants | 49 (Main) 28 (Backup) |
Block interval | 0.5 Second |
Block Confirmation | 1.0 Second |
Maximum Block Size | 1.0 Mega byte |
TPS (Transactions per second) | 2000-4000 |
For further details, see the beige paper.
Prism is being actively developed and the current version is a draft implementation of 3 leagues with 3 nodes each.
Prerequisites for running the local network:
- Linux host (tested in Ubuntu 18.04 guest in Virtual Box with 8 Gb RAM)
- Installed docker and docker-compose
- Go version 1.11.4 or higher
mkdir -p $GOPATH/src/github.com/ColorPlatform
cd $GOPATH/src/github.com/ColorPlatform
git clone https://github.com/ColorPlatform/prism.git
cd prism
make get_tools
make get_vendor_deps
make build
Local network is based on Docker infrastructure and docker-compose
tool.
- Make sure you installed the most recent versions of
docker
anddocker-compose
. - Add your Linux user to the
docker
groupsudo usermod -a -G docker $USER
- Build docker image
make build-docker-localnode
Let's consider running a local network with 9 nodes grouped in 3 leagues
- Generate configuration files
./scripts/localnet -l 3 -n 3 init
- Run the local network
./scripts/localnet start
To stop the local network gracefully use the following command:
./scripts/localnet stop