Skip to content

Commit

Permalink
Add support for Litecoin and other coins. (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie Lee authored and Stadicus committed Sep 22, 2018
1 parent e56ceab commit a90212e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions raspibolt/resources/lnbalance
Expand Up @@ -8,6 +8,7 @@
# Usage
# $ lnbalance to display lnd mainnet status
# $ lnbalance --testnet to display lnd testnet status
# $ lnbalance litecoin to display lnd litecoin status

# Set default (mainnet)
lncli='/usr/local/bin/lncli'
Expand All @@ -18,12 +19,15 @@ chain='main'
for i in "$@"
do
case $i in
--testnet*)
lncli="/usr/local/bin/lncli --rpcserver=localhost:11009"
--testnet*)
lncli="${lncli} --rpcserver=localhost:11009"
lnd_pid=$(systemctl show -p MainPID lnd_testnet | awk -F"=" '{print $2}')
chain='test'
shift # past argument=value
;;
*)
lncli="/usr/local/bin/lncli --chain=$i"
;;
esac
done

Expand Down
8 changes: 6 additions & 2 deletions raspibolt/resources/lnchannels
Expand Up @@ -8,6 +8,7 @@
# Usage
# $ lnchannels to display lnd mainnet channels
# $ lnchannels --testnet to display lnd testnet channels
# $ lnchannels litecoin to display lnd litecoin channels

# Set default (mainnet)
lncli='/usr/local/bin/lncli'
Expand All @@ -18,12 +19,15 @@ chain='main'
for i in "$@"
do
case $i in
--testnet*)
lncli="/usr/local/bin/lncli --rpcserver=localhost:11009"
--testnet*)
lncli="${lncli} --rpcserver=localhost:11009"
lnd_pid=$(systemctl show -p MainPID lnd_testnet | awk -F"=" '{print $2}')
chain='test'
shift # past argument=value
;;
*)
lncli="/usr/local/bin/lncli --chain=$i"
;;
esac
done

Expand Down

0 comments on commit a90212e

Please sign in to comment.