scripts/setup.sh: setup helper script.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2015-06-30 12:48:06 +09:30
parent 783aa35aa6
commit 27e7c7b986
3 changed files with 50 additions and 3 deletions

View File

@@ -4,6 +4,7 @@
set -e
. `dirname $0`/vars.sh
INIT=$1
case $STYLE in
alpha)
@@ -11,6 +12,11 @@ case $STYLE in
$CLI setgenerate true
;;
bitcoin)
$CLI generate 1
# Initially we need 100 blocks so coinbase matures, giving us funds.
if [ -n "$INIT" ]; then
$CLI generate 101
else
$CLI generate 1
fi
;;
esac