2015-06-25 05:19:17 +01:00
|
|
|
#! /bin/sh
|
2015-09-30 02:24:11 +01:00
|
|
|
# Generate a block.
|
2015-06-25 05:19:17 +01:00
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
. `dirname $0`/vars.sh
|
2015-06-30 04:18:06 +01:00
|
|
|
INIT=$1
|
2015-06-25 05:19:17 +01:00
|
|
|
|
2016-04-11 08:02:43 +01:00
|
|
|
# Initially we need 100 blocks so coinbase matures, giving us funds.
|
|
|
|
if [ -n "$INIT" ]; then
|
|
|
|
$CLI generate 101
|
|
|
|
else
|
|
|
|
$CLI generate 1
|
|
|
|
fi
|