This program monitors the status of a Lightning Node and sends an alert if the node is unsynced or another issue is detected. It also and makes static channel backups.
If lightning node is offline, channel parter could force close channels and steal the money on that channel. Routing nodes are also monitored for uptime by their peers and payment routing is deprioritized for less reliable nodes.
- Twilio account
- Set environment variables
cp env-example.sh env.sh
(make applicable changes)
source env.sh- Seed the database by adding your node and user details here:
/internal/db/migrations/20230228010000_seed_users.up.sql
/internal/db/migrations/20230228010000_seed_nodes.up.sql
- Buld and run
docker compose up postgres
make build
make runSample Output
Getting node status ...
SMS sent successfully!
Good news, lightning node "abcxyz" is fully synced!
Last block received 15m18.211865s minutes ago