-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·23 lines (18 loc) · 825 Bytes
/
build.sh
File metadata and controls
executable file
·23 lines (18 loc) · 825 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
#version="nightly-2019-04-07"
#rustup override set $version
pkill bft
cargo build --example bft
function cluster() {
RUST_BACKTRACE=full RUST_LOG=debug ./target/debug/examples/bft start --config examples/c1.toml 1> /tmp/c1.log 2>&1 &
RUST_BACKTRACE=full RUST_LOG=debug ./target/debug/examples/bft start --config examples/c2.toml 1> /tmp/c2.log 2>&1 &
RUST_BACKTRACE=full RUST_LOG=debug ./target/debug/examples/bft start --config examples/c3.toml 1> /tmp/c3.log 2>&1 &
RUST_BACKTRACE=full RUST_LOG=debug ./target/debug/examples/bft start --config examples/c4.toml 1> /tmp/c4.log 2>&1 &
RUST_BACKTRACE=full RUST_LOG=debug ./target/debug/examples/bft start --config examples/c5.toml 1> /tmp/c5.log 2>&1 &
}
echo "run in 5 nodes"
echo "rm data"
rm -fr /tmp/block
pkill -9 bft
sleep 3
cluster