Browse Source

more info on unconfirmed funds

#146
rootzoll 6 years ago
parent
commit
bf04ad9b76
  1. 5
      home.admin/00infoBlitz.sh
  2. 3
      home.admin/00mainMenu.sh
  3. 2
      home.admin/10setupBlitz.sh
  4. 1
      home.admin/config.scripts/bonus.rtl.sh

5
home.admin/00infoBlitz.sh

@ -203,10 +203,13 @@ else
fi
else
ln_walletbalance="$(sudo -u bitcoin /usr/local/bin/lncli --macaroonpath=${lnd_macaroon_dir}/readonly.macaroon --tlscertpath=${lnd_dir}/tls.cert walletbalance | jq -r '.confirmed_balance')" 2>/dev/null
ln_walletbalance_wait="$(sudo -u bitcoin /usr/local/bin/lncli --macaroonpath=${lnd_macaroon_dir}/readonly.macaroon --tlscertpath=${lnd_dir}/tls.cert walletbalance | jq -r '.unconfirmed_balance')" 2>/dev/null
if [ "${ln_walletbalance_wait}" = "0" ] then ln_walletbalance_wait=""; fi
if [ ${#ln_walletbalance_wait} -gt 0 ] then ln_walletbalance_wait="(+${ln_walletbalance_wait})"; fi
ln_channelbalance="$(sudo -u bitcoin /usr/local/bin/lncli --macaroonpath=${lnd_macaroon_dir}/readonly.macaroon --tlscertpath=${lnd_dir}/tls.cert channelbalance | jq -r '.balance')" 2>/dev/null
ln_channels_online="$(echo "${ln_getInfo}" | jq -r '.num_active_channels')" 2>/dev/null
ln_channels_total="$(sudo -u bitcoin /usr/local/bin/lncli --macaroonpath=${lnd_macaroon_dir}/readonly.macaroon --tlscertpath=${lnd_dir}/tls.cert listchannels | jq '.[] | length')" 2>/dev/null
ln_baseInfo="${color_gray}wallet ${ln_walletbalance} sat"
ln_baseInfo="${color_gray}wallet ${ln_walletbalance} sat ${ln_walletbalance_wait}"
ln_peers="$(echo "${ln_getInfo}" | jq -r '.num_peers')" 2>/dev/null
ln_channelInfo="${ln_channels_online}/${ln_channels_total} Channels ${ln_channelbalance} sat"
ln_peersInfo="${color_purple}${ln_peers} ${color_gray}peers"

3
home.admin/00mainMenu.sh

@ -124,6 +124,9 @@ if [ -f "/home/admin/.setup" ]; then
fi
if [ ${setupState} -eq 0 ]; then
# check data from boostrap
# TODO: when olddata --> CLEAN OR MANUAL-UPDATE-INFO
# start setup
BACKTITLE="RaspiBlitz - Setup"
TITLE="⚡ Welcome to your RaspiBlitz ⚡"

2
home.admin/10setupBlitz.sh

@ -111,7 +111,7 @@ if [ ${mountOK} -eq 1 ]; then
sudo tail /mnt/hdd/${network}/debug.log
echo ""
echo "UNKOWN STATE - there is blockain data folder, but blockchaind is not running"
echo "UNKOWN STATE - there is blockain data folder, but blockchain service is not running"
echo "It seems that something went wrong during sync/download/copy of the blockchain."
echo "Or something with the config is not correct."
echo "Sometimes a reboot helps --> sudo shutdown -r now"

1
home.admin/config.scripts/bonus.rtl.sh

@ -77,7 +77,6 @@ fi
# switch off
if [ "$1" = "0" ] || [ "$1" = "off" ]; then
echo "*** REMOVING RTL ***"
# setting value in raspi blitz config
sudo sed -i "s/^rtlWebinterface=.*/rtlWebinterface=off/g" /mnt/hdd/raspiblitz.conf

Loading…
Cancel
Save