You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Long running channels have income/expense data dominated by old accumulated data. Since channels and peer environments change over time this may not provide the best information for current decisions.
Related:
This is sort of a special case of #1 ... if a bug (ie #222 ) causes distortions (either actual or measured) it would be really nice if the instance "healed" over time and converged on sensible decisions ...
Possible solutions:
Expunge old data from the EarningsTracker table. I hate removing data ...
Make all earnings and expenditures timestamped. Makes table really big, queries take longer ...
Current Earnings Tracking:
Currently fee income from routing and expense due to rebalancing are held in the
EarningsTracker
table on a per-peer basis:Problems:
1. Ancient data can dilute/overwhelm current data
Long running channels have income/expense data dominated by old accumulated data. Since channels and peer environments change over time this may not provide the best information for current decisions.
Related:
2. Users would like income/expense reports for specific periods of time
Would help answer questions like:
Related:
clboss-tally
. #1423. Doesn't "heal"
This is sort of a special case of #1 ... if a bug (ie #222 ) causes distortions (either actual or measured) it would be really nice if the instance "healed" over time and converged on sensible decisions ...
Possible solutions:
EarningsTracker
table. I hate removing data ...Time buckets
Add a
time_bucket
field toEarningsTracker
:When earnings or expenditures are being reported, the current unix timestamp is divided by the number of seconds in a day to derive a "time bucket".
When a query is made for income/expense it can specify a desired time bucket range (or all if the current behavior is desired).
We can consider expunging/archiving old data in the future.
The text was updated successfully, but these errors were encountered: