mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-21 16:14:23 +01:00
lightningd: track balance in way which matches channeld.
Currently it's fairly ad-hoc, but we need to tell it to channeld when it restarts, so we define it as the non-HTLC balance. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -69,7 +69,7 @@ struct peer {
|
||||
u16 funding_outnum;
|
||||
u64 funding_satoshi, push_msat;
|
||||
|
||||
/* Channel balance (LOCAL and REMOTE); if we have one. */
|
||||
/* Amount going to us, not counting unfinished HTLCs; if we have one. */
|
||||
u64 *balance;
|
||||
|
||||
/* Keys for channel. */
|
||||
|
||||
Reference in New Issue
Block a user