In is the project, we implement the raft algorithm on the blockchain to solve the consensus problem.
- Java 11
- Maven 3.6.0
- Redis 6.2.3
brew install redis
sudo add-apt-repository ppa:redislabs/redis
sudo apt-get update
sudo apt-get install redis
cd ..../RaftOnBlockchain/redisConfigs/redis-6380 && redis-server redis.conf
cd ..../RaftOnBlockchain/redisConfigs/redis-6381 && redis-server redis.conf
cd ..../RaftOnBlockchain/redisConfigs/redis-6382 && redis-server redis.conf
cd ..../RaftOnBlockchain/redisConfigs/redis-6383 && redis-server redis.conf
cd ..../RaftOnBlockchain/redisConfigs/redis-6384 && redis-server redis.conf
cd ..../RaftOnBlockchain/redisConfigs/redis-6385 && redis-server redis.conf
cd ..../RaftOnBlockchain/redisConfigs/redis-6386 && redis-server redis.conf
cd redisConfigs
for dir in */
do
(cd $dir && redis-server redis.conf)
done
run demo.Raftpool in Intellij IDEA
run client.BlockChainAutoClient in Intellij IDEA
run client.BlockChainTestClient in Intellij IDEA
Or
java -jar RaftOnBlockchain-2.0-SNAPSHOT.jar