core-lightning/plugins/bkpr
niftynei dc113d0a3f bkpr: create onchain fee records for events
clightning doesn't give us any info about onchain fees (how could it?
it only knows about utxo object levels, and doesn't keep track of
how/when those are all related)

Instead, we keep running totals of the onchain fees for utxos. This
implements the master method for accounting for them, plus includes
tests to account for channel opens (across two accounts) as well as a
htlc-tx channel close.

Missing: we don't currently emit an event from cln for `withdraw`
initiated removal of funds, so the accounting for wallet -> external
funds is a bit janky. We don't account for the fees on these
transactions since we don't have the resulting 'external' event to
register them against!
2022-07-28 12:08:18 +09:30
..
test bkpr: create onchain fee records for events 2022-07-28 12:08:18 +09:30
account.c bookkeeper: initial crud (no tests) 2022-07-28 12:08:18 +09:30
account.h bookkeeper: initial crud (no tests) 2022-07-28 12:08:18 +09:30
bookkeeper.c bookkeeper: initial crud (no tests) 2022-07-28 12:08:18 +09:30
chain_event.h bookkeeper: initial crud (no tests) 2022-07-28 12:08:18 +09:30
channel_event.h bookkeeper: initial crud (no tests) 2022-07-28 12:08:18 +09:30
db.c bookkeeper: initial crud (no tests) 2022-07-28 12:08:18 +09:30
db.h bkpr: first attempt at database code for accounting 2022-07-28 12:08:18 +09:30
Makefile bookkeeper: initial crud (no tests) 2022-07-28 12:08:18 +09:30
onchain_fee.h bookkeeper: initial crud (no tests) 2022-07-28 12:08:18 +09:30
recorder.c bkpr: create onchain fee records for events 2022-07-28 12:08:18 +09:30
recorder.h bkpr: create onchain fee records for events 2022-07-28 12:08:18 +09:30