update demo scripts

* add setup to combine init steps, configurable initial mint
  * bash -e -> bash and be explicit about errors with || exit $?
  * feed transaction logs to validator, too
This commit is contained in:
Rob Walker
2018-06-18 15:23:56 -07:00
parent e592243a09
commit 4ecd2c9d0b
4 changed files with 16 additions and 5 deletions

9
multinode-demo/setup.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
TOKENS=${1:-1000000000}
cargo run --release --bin solana-mint-demo <<<"${TOKENS}" > mint-demo.json
cargo run --release --bin solana-genesis-demo < mint-demo.json > genesis.log
cargo run --release --bin solana-fullnode-config -- -d > leader.json
cargo run --release --bin solana-fullnode-config -- -d > validator.json