mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-08 14:50:26 +01:00
27e7c7b986
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
23 lines
375 B
Bash
Executable File
23 lines
375 B
Bash
Executable File
#! /bin/sh
|
|
# Query bitcoind to get (first) unspent output to spend.
|
|
|
|
set -e
|
|
|
|
. `dirname $0`/vars.sh
|
|
INIT=$1
|
|
|
|
case $STYLE in
|
|
alpha)
|
|
# This is a one-shot in alpha, it seems.
|
|
$CLI setgenerate true
|
|
;;
|
|
bitcoin)
|
|
# Initially we need 100 blocks so coinbase matures, giving us funds.
|
|
if [ -n "$INIT" ]; then
|
|
$CLI generate 101
|
|
else
|
|
$CLI generate 1
|
|
fi
|
|
;;
|
|
esac
|