Commit graph

4 commits

Author SHA1 Message Date
Ken Sedgwick
9aeb29c541 Add associated primary volume (forwarded and rebalanced) to EarningsTracker
Addresses ([#229])

This allows effective feerates (PPM) to be computed for earnings and
expenses.

This PR updates the schema automatically.  Downgrading to previous
will require manual DB migration (but is possible).  Downgrade
commands are in a comment in EarningsTracker.c
2024-09-25 13:23:04 -05:00
Ken Sedgwick
65ce91578e add EarningsTracker::bucket_time quantizer and unit tests 2024-09-25 13:23:04 -05:00
Ken Sedgwick
781c4afb80 add get_now() and mock_get_now() to EarningsTracker and test_earningstracker
A time source is needed for upcoming time buckets change.
2024-09-25 13:23:04 -05:00
Ken Sedgwick
094d99a48a add test_earningstracker for legacy tracking 2024-09-25 13:23:04 -05:00