An experimental peer-to-peer client using the Honey Badger Byzantine Fault Tolerant consensus algorithm.
git clone https://github.com/poanetwork/hydrabadger
cd hydrabadger
./run-node 0
cd {...}/hydrabadger
./run-node 1
./run-node 2
, ./run-node 3
, ./run-node 4
Each peer will generate a number of random transactions at regular intervals, process them accordingly, and output complete batches. If your terminal is spammed with batch outputs, consensus is working.
Type ./run-node 0 --help
or cargo run -- --help
for command line options.
See the
run-node
script for additional optional environment variables that can be set. To turn
on debug log output: export HYDRABADGER_LOG_ADDTL=debug
and/or echo "export HYDRABADGER_LOG_ADDTL=debug" >> ~/.profile
.
Network initialization node addition, transaction generation, consensus, and batch outputs are all generally working. Batch outputs for each epoch are printed to the log.
Overall the client is fragile and doesn't handle deviation from simple usage very well yet.
This project is licensed under the GNU Lesser General Public License v3.0. See the LICENSE file for details.