mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 15:44:21 +01:00
scripts: move to scripts/ subdir, prepare for alpha.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
16
test-cli/scripts/generate-block.sh
Executable file
16
test-cli/scripts/generate-block.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#! /bin/sh
|
||||
# Query bitcoind to get (first) unspent output to spend.
|
||||
|
||||
set -e
|
||||
|
||||
. `dirname $0`/vars.sh
|
||||
|
||||
case $STYLE in
|
||||
alpha)
|
||||
# This is a one-shot in alpha, it seems.
|
||||
$CLI setgenerate true
|
||||
;;
|
||||
bitcoin)
|
||||
$CLI generate 1
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user