mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-20 02:27:51 +01:00
dc113d0a3f
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! |
||
---|---|---|
.. | ||
test | ||
account.c | ||
account.h | ||
bookkeeper.c | ||
chain_event.h | ||
channel_event.h | ||
db.c | ||
db.h | ||
Makefile | ||
onchain_fee.h | ||
recorder.c | ||
recorder.h |