Ride-The-Lightning / RTL

Ride The Lightning - A full function web browser app for LND, C-Lightning and Eclair
MIT License
740 stars 157 forks source link

Show total amount of sats routed on the report and dashboard #1084

Open sendbitcoin opened 2 years ago

sendbitcoin commented 2 years ago

on the dashboard and on the routing reports page:

can we get the total amount of sats routed for the period and not just the number events and fee earned

maybe also give us the average and median transaction size that was routed, might be useful

example:

Weekly: Sats routed: 69'000'000 Routing Fees earned: 1337 number of transactions routed: 420 average transaction size: 100'000 median transaction size: 69'420

the dashboard routing fee overview is a really cool feature but it currently has a lot of white empty space and untapped potential. Same goes for the report page, it seems pretty barebones and could be a lot more useful if it gave more data and stats

saubyk commented 2 years ago

Hi @sendbitcoin these type of aggregations add significant performance overhead on the dashboard, which degrade the login experience. We will add the aggregation for the amount routed on the routing report. If you need to do analysis on the data (like avg. txn etc), you should download it on an excel and slice/dice per your needs.

sendbitcoin commented 2 years ago

I have a pretty beefy pc running rtl so I don't think performance would be an issue for me. I could see it being an issue on a raspberry pi tho... So what if was an option that's off by default and could be turned on under "node config"?

You could just add a on/off slider "show Sats routed on dashboard" etc. (you could add a tooltip warning "may increase load time of dashboard")

the average and median are less important imo... but if we could somehow get total sats routed on the dashboard it would be really cool