mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-04 05:34:22 +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.
Plugin Directory
Any file in this directory which is executable and whose name only consists of alphanumeric characters, space, '.', '-' or '_' will be automatically loaded when lightningd starts (unless suppressed with commandline options).