mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 14:42:40 +01:00
Because we update the onchain_fee table every time a new event comes in, it's possible (and in fact happens) that we get a wallet withdraw/deposit event and then the channel open output event. What we'd expect in this case is that the fees for the tx were credited to the channel's account, not the wallet. But since we got the two in/out events first, the fees were accumulated there first. Our existing logic will add the channel's fees correctly, but we weren't zeroing out the wallet's balance once it'd been determined that they were 'ineligble' so to speak, for being included in the fees that round. |
||
---|---|---|
.. | ||
test | ||
account.c | ||
account.h | ||
account_entry.c | ||
account_entry.h | ||
bookkeeper.c | ||
chain_event.h | ||
channel_event.c | ||
channel_event.h | ||
db.c | ||
db.h | ||
Makefile | ||
onchain_fee.h | ||
recorder.c | ||
recorder.h |