mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-20 10:39:49 +01:00
4bbb86ae30
Move final helpers out of test-cli/ Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
18 lines
340 B
Bash
Executable File
18 lines
340 B
Bash
Executable File
#! /bin/sh
|
|
|
|
# Alpha defaults to confidential addresses. We don't handle those (yet?)
|
|
# so extract the unconfidential address.
|
|
set -e
|
|
|
|
. `dirname $0`/vars.sh
|
|
|
|
case $STYLE in
|
|
alpha)
|
|
A=`$CLI getnewaddress`
|
|
$CLI validateaddress $A | sed -n 's/.*"unconfidential" : "\([A-Za-z0-9]*\)".*/\1/p'
|
|
;;
|
|
bitcoin)
|
|
$CLI getnewaddress
|
|
;;
|
|
esac
|