From c9828d146a6e29f1c596030e6cec50f6aeda513a Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 11 Oct 2017 20:35:50 +1030 Subject: [PATCH] contrib/lightning-open-channel: remove It doesn't work on new lightningd anyway. Signed-off-by: Rusty Russell --- contrib/lightning-open-channel | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100755 contrib/lightning-open-channel diff --git a/contrib/lightning-open-channel b/contrib/lightning-open-channel deleted file mode 100755 index e678744c0..000000000 --- a/contrib/lightning-open-channel +++ /dev/null @@ -1,18 +0,0 @@ -#! /bin/sh -e -# A terrible script to fund a channel. - -if [ $# -ne 3 ]; then - echo "Usage: " >&2 - exit 1 -fi -HOST="$1" -PORT="$2" -AMOUNT="$3" - -NEWADDR=`cli/lightning-cli newaddr | sed -n 's/{ "address" : "\(.*\)" }/\1/p'` -TXID=`bitcoin-cli -testnet sendtoaddress $NEWADDR $AMOUNT` -RAWTX=`bitcoin-cli -testnet getrawtransaction $TXID` - -echo "Connecting to $HOST port $PORT with $AMOUNT (minus fee) in address $NEWADDR tx $TXID" -echo "(Note: this will block until we get sufficient confirmations!)" -exec cli/lightning-cli connect "$HOST" "$PORT" $RAWTX