Check routing on LND
Revision as of 06:57, 17 January 2019 by MiltonPusser (talk | contribs) (Created page with "To check if your LND node has forwarded events, do: <pre>lncli fwdinghistory --max_events 100000 --start_time=$( date +%s --date='00:00' ) --end_time=$(date +%s)</pre> It will...")
To check if your LND node has forwarded events, do:
lncli fwdinghistory --max_events 100000 --start_time=$( date +%s --date='00:00' ) --end_time=$(date +%s)
It will show you the events since midnight of the current day.
Nightly email
Below cronjob will send a summary email every night: /opt/mail.sh:
( lncli walletbalance; lncli channelbalance; lncli getinfo; lncli fwdinghistory --max_events 100000 --start_time=$( date +%s --date='1 day ago' ) --end_time=$(date +%s) | grep chan | sort | uniq -c | sort -rn | head; lncli fwdinghistory --max_events 100000 --start_time=$( date +%s --date='1 day ago' ) --end_time=$(date +%s) ) | mail -s "Lighting stats, [ $( lncli fwdinghistory --max_events 100000 --start_time=$( date +%s --date='1 day ago' ) --end_time=$(date +%s) | grep last_offset | egrep -o '[0-9]*' ) ] payments" root
Root crontab:
0 0 * * * /opt/mail.sh