Commit graph

6 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
d20acda660 factor parse_json into Jsmn::Object static method
This makes it easier to generate test cases by using literal JSON.
2024-09-25 13:23:04 -05:00
Ken Sedgwick
a36d119ba4 Restore ForwardFeeMonitor's ability to see forwarding fees
Fixes ([#222])

Prior to ElementsProject/lightning@780f32d (`v23.05`) both `fee` and
`fee_msat` were sent for compatibility.  The ForwardFeeMonitor was
checking for the presence of the `fee` field before processing the
record.  This needed to be updated to `fee_msat`.
2024-08-08 13:42:52 -07:00
Ken Sedgwick
0bd255ce1b Convert ListpeerResult to use ConstructedListpeers
Construct a "compatibility struct" to convert `listpeerchannels`
output into legacy `listpeers` format.

Tests written using the legacy listpeers format can use the
`convert_legacy_listpeers` utility to construct a compatibility
struct.

The test_peerjudge_datagatherer malformed test needed to be malformed
differently to achieve the desired effect.
2024-06-02 16:19:56 -07:00
ZmnSCPxj jxPCSnmZ
6d6e869ba9 Boss/Mod/ForwardFeeMonitor.cpp: Refactor to use Boss::Mod::PeerFromScidMapper. 2023-07-11 20:57:51 +08:00
ZmnSCPxj jxPCSnmZ
7f9a7f8de8 tests/boss/test_forwardfeemonitor.cpp: Add test for Boss::Mod::ForwardFeeMonitor. 2023-07-11 20:57:51 +08:00