mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-25 11:13:12 +02:00
more info on unconfirmed funds
This commit is contained in:
@@ -203,10 +203,13 @@ else
|
|||||||
fi
|
fi
|
||||||
else
|
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="$(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_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_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_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_peers="$(echo "${ln_getInfo}" | jq -r '.num_peers')" 2>/dev/null
|
||||||
ln_channelInfo="${ln_channels_online}/${ln_channels_total} Channels ${ln_channelbalance} sat"
|
ln_channelInfo="${ln_channels_online}/${ln_channels_total} Channels ${ln_channelbalance} sat"
|
||||||
ln_peersInfo="${color_purple}${ln_peers} ${color_gray}peers"
|
ln_peersInfo="${color_purple}${ln_peers} ${color_gray}peers"
|
||||||
|
@@ -124,6 +124,9 @@ if [ -f "/home/admin/.setup" ]; then
|
|||||||
fi
|
fi
|
||||||
if [ ${setupState} -eq 0 ]; then
|
if [ ${setupState} -eq 0 ]; then
|
||||||
|
|
||||||
|
# check data from boostrap
|
||||||
|
# TODO: when olddata --> CLEAN OR MANUAL-UPDATE-INFO
|
||||||
|
|
||||||
# start setup
|
# start setup
|
||||||
BACKTITLE="RaspiBlitz - Setup"
|
BACKTITLE="RaspiBlitz - Setup"
|
||||||
TITLE="⚡ Welcome to your RaspiBlitz ⚡"
|
TITLE="⚡ Welcome to your RaspiBlitz ⚡"
|
||||||
|
@@ -111,7 +111,7 @@ if [ ${mountOK} -eq 1 ]; then
|
|||||||
sudo tail /mnt/hdd/${network}/debug.log
|
sudo tail /mnt/hdd/${network}/debug.log
|
||||||
echo ""
|
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 "It seems that something went wrong during sync/download/copy of the blockchain."
|
||||||
echo "Or something with the config is not correct."
|
echo "Or something with the config is not correct."
|
||||||
echo "Sometimes a reboot helps --> sudo shutdown -r now"
|
echo "Sometimes a reboot helps --> sudo shutdown -r now"
|
||||||
|
@@ -77,7 +77,6 @@ fi
|
|||||||
|
|
||||||
# switch off
|
# switch off
|
||||||
if [ "$1" = "0" ] || [ "$1" = "off" ]; then
|
if [ "$1" = "0" ] || [ "$1" = "off" ]; then
|
||||||
echo "*** REMOVING RTL ***"
|
|
||||||
|
|
||||||
# setting value in raspi blitz config
|
# setting value in raspi blitz config
|
||||||
sudo sed -i "s/^rtlWebinterface=.*/rtlWebinterface=off/g" /mnt/hdd/raspiblitz.conf
|
sudo sed -i "s/^rtlWebinterface=.*/rtlWebinterface=off/g" /mnt/hdd/raspiblitz.conf
|
||||||
|
Reference in New Issue
Block a user